summaryrefslogtreecommitdiff
path: root/extra/camsource/PKGBUILD
blob: 5c6221769605f242d4fbb0fbdfbb49fb060351e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $Id: PKGBUILD 68022 2010-02-10 14:13:39Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>

pkgname=camsource
pkgver=0.7.0
pkgrel=6
pkgdesc="Grabs images from a v4l and v4l2 webcam devices"
arch=('i686' 'x86_64')
url="http://camsource.sourceforge.net/"
license=('GPL')
depends=('libxml2' 'libjpeg>=8')
backup=('etc/camsource.conf')
options=('!libtool')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
        mod_handle.c.patch)
md5sums=('ffd824f13f99011984399fc3b7526c71'
         'a8fabaf271b6f575c6e957573908c529')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  patch -Np0 -i $srcdir/mod_handle.c.patch || return 1
  ./configure --prefix=/usr \
              --sysconfdir=/etc || return 1
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1
  mv ${pkgdir}/etc/camsource.conf.example ${pkgdir}/etc/camsource.conf
}