updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / spcagui / PKGBUILD
blob86a4f88b7059c38ef25f45bb1d93a4b8e49a2992
1 # Contributor: Giorgio Lando <patroclo7@gmail.com>
2 pkgname=spcagui
3 pkgver=20060127
4 pkgrel=8
5 pkgdesc="A spca5xx webcam VideoGrabber: take jpeg pics and avi file"
6 license="GPL"
7 url="http://mxhaard.free.fr/download.html"
8 source=(http://mxhaard.free.fr/spca50x/Download/spcagui$pkgver.tar.gz)
9 depends=(sdl_image)
11 build() {
12   cd $startdir/src/$pkgname$pkgver
13   make || return 1
14   sed -i 's:$(INSTALL_DIR) /usr/local/share/spcagui:##:g' makefile
15   sed -i 's:/usr/local/share/spcagui:$(BIN)/../share/spcagui:g' makefile
16   sed -i 's:/usr/local/share/spcagui:$(BIN)/../share/spcagui:g' makefile
17   sed -i 's:/usr/local/share/spcagui/:/usr/share/spcagui/:g' config.h
18   sed -i 's:/usr/local/share:/usr/share:g' Spcagui.desktop
19   sed -i 's:spcagui -d /dev/video1:spcagui:g' Spcagui.desktop
20   sed -i \$a\ 'Categories=AudioVideo;' Spcagui.desktop
21   install -d -m755 $startdir/pkg/usr/{bin,share/spcagui}
22   install -D -m644 Spcagui.desktop $startdir/pkg/usr/share/applications/spcagui.desktop
23   make BIN=$startdir/pkg/usr/bin install
24
25 md5sums=('e664087a3a4c86c28840fff358b8075e')