diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/w3cam | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/w3cam')
-rw-r--r-- | community/w3cam/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community/w3cam/PKGBUILD b/community/w3cam/PKGBUILD new file mode 100644 index 000000000..7d448d758 --- /dev/null +++ b/community/w3cam/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 90102 2013-05-06 19:39:58Z foutrelis $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Christian Schmidt <mucknert@gmx.net> + +pkgname=w3cam +pkgver=0.7.2 +pkgrel=11 +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') +makedepends=('v4l-utils') +source=(http://mpx.freeshell.net/$pkgname-$pkgver.tar.gz) +md5sums=('eec0b301b32bc8e9f65a4e54248c9868') + +build() { + cd $srcdir/$pkgname-$pkgver + sed -i 's|#include <linux/videodev.h>|#include <libv4l1-videodev.h>|' v4l.c vidcat.c w3cam.c w3camd/w3v4l.c + ./configure --prefix=/usr --with-device=/dev/video0 --with-ttf-inc=/usr/include/freetype + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + mkdir -p $pkgdir/usr/cgi-bin $pkgdir/usr/bin $pkgdir/usr/man/man1 $pkgdir/usr/share/ + make prefix=$pkgdir/usr/ install + mkdir -p $pkgdir/usr/lib/w3cam/ + mv $pkgdir/usr/cgi-bin/* $pkgdir/usr/lib/w3cam/ + mv $pkgdir/usr/man $pkgdir/usr/share/man + rm -rf $pkgdir/usr/cgi-bin +} |