summaryrefslogtreecommitdiff
path: root/community/w3cam/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/w3cam/PKGBUILD')
-rw-r--r--community/w3cam/PKGBUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/community/w3cam/PKGBUILD b/community/w3cam/PKGBUILD
new file mode 100644
index 000000000..a0b3016c4
--- /dev/null
+++ b/community/w3cam/PKGBUILD
@@ -0,0 +1,26 @@
+# $Id: PKGBUILD 9021 2010-01-23 03:31:31Z dgriffiths $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Christian Schmidt <mucknert@gmx.net>
+
+pkgname=w3cam
+pkgver=0.7.2
+pkgrel=9
+pkgdesc="a small and fast CGI program to retrieve images from a video4linux device."
+arch=('i686' 'x86_64')
+url="http://mpx.freeshell.net/"
+license=('GPL')
+depends=(libpng libjpeg)
+source=(http://mpx.freeshell.net/$pkgname-$pkgver.tar.gz)
+md5sums=('eec0b301b32bc8e9f65a4e54248c9868')
+
+build() {
+ cd $startdir/src/$pkgname-$pkgver
+ ./configure --prefix=/usr --with-device=/dev/video0 --with-ttf-inc=/usr/include/freetype
+ make || return 1
+ mkdir -p $startdir/pkg/usr/cgi-bin $startdir/pkg/usr/bin $startdir/pkg/usr/man/man1 $startdir/pkg/usr/share/
+ make prefix=$startdir/pkg/usr/ install && \
+ mkdir -p $startdir/pkg/usr/lib/w3cam/ && \
+ mv $startdir/pkg/usr/cgi-bin/* $startdir/pkg/usr/lib/w3cam/ && \
+ mv $startdir/pkg/usr/man $startdir/pkg/usr/share/man || return 1
+ rm -rf $startdir/pkg/usr/cgi-bin
+}