blob: a0b3016c4c9fcdce4f54f74ea3cfd30097ed3f73 (
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
|
# $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
}
|