PKGBUILDs/extra/camsource/PKGBUILD
2009-10-09 21:23:22 -05:00

24 lines
877 B
Bash

# $Id: PKGBUILD 44474 2009-07-02 06:57:29Z allan $
# Maintainer: roberto <roberto@archlinux.org>
pkgname=camsource
pkgver=0.7.0
pkgrel=5
pkgdesc="Grabs images from a v4l device and makes them available to various plugins for processing or handling."
arch=('i686' 'x86_64')
url="http://camsource.sourceforge.net/"
license=('GPL2')
depends=('libxml2' 'libjpeg>=7')
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
}