diff options
Diffstat (limited to 'extra/camsource')
-rw-r--r-- | extra/camsource/PKGBUILD | 28 | ||||
-rw-r--r-- | extra/camsource/mod_handle.c.patch | 14 |
2 files changed, 42 insertions, 0 deletions
diff --git a/extra/camsource/PKGBUILD b/extra/camsource/PKGBUILD new file mode 100644 index 000000000..5c6221769 --- /dev/null +++ b/extra/camsource/PKGBUILD @@ -0,0 +1,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 +} diff --git a/extra/camsource/mod_handle.c.patch b/extra/camsource/mod_handle.c.patch new file mode 100644 index 000000000..25e2d52fc --- /dev/null +++ b/extra/camsource/mod_handle.c.patch @@ -0,0 +1,14 @@ +--- src/mod_handle.c.old 2005-01-31 11:16:10.000000000 +0000 ++++ src/mod_handle.c 2005-01-31 11:27:25.000000000 +0000 +@@ -303,10 +303,9 @@ + for (i = 0; i < MAX_MODULES; i++) + { + if (modules[i].dlhand == dlh) +- goto inuse; /* break */ ++ break; + } + dlclose(dlh); +-inuse: + } + } + |