1 # Contributor: Giorgio Lando <patroclo7@gmail.com>
5 pkgdesc="A spca5xx webcam VideoGrabber: take jpeg pics and avi file"
7 url="http://mxhaard.free.fr/download.html"
8 source=(http://mxhaard.free.fr/spca50x/Download/spcagui$pkgver.tar.gz)
12 cd $startdir/src/$pkgname$pkgver
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
25 md5sums=('e664087a3a4c86c28840fff358b8075e')