1 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
2 # Contributor: Chris Giles <Chris.G.27 (at) Gmail.com>
6 pkgname=gui-${libname}-git
9 pkgdesc="A GUI for managing V4L2 Webcam Preferences for Microdia (0c45) webcams"
11 url="https://groups.google.com/group/${libname}/msg/02d97178b5a83cb3"
13 depends=("${libname}-git" "gtk2" "python" "python-configobj" "ivtv-utils")
15 optdepends=("mplayer: to test the Microdia webcam")
16 #install=${pkgname}.install
20 _gitroot="git://repo.or.cz/${filename}.git"
21 _gitname="${filename}"
27 msg "Connecting to GIT server...."
28 if [ -d ${srcdir}/$_gitname ] ; then
29 cd $_gitname && git pull origin || return 1
30 msg "The local files are updated."
32 git clone $_gitroot || return 1
34 msg "GIT checkout done or server timeout"
35 msg "Starting make..."
38 rm -rf ${srcdir}/$_gitname-build
39 cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
40 cd ${srcdir}/$_gitname-build
43 python setup.py install --root=${pkgdir} || return 1
44 ln -s /usr/share/pyshared/${filename}/MicrodiaV4.xml ${pkgdir}/usr/lib/python2.6/site-packages/${filename}/
45 ln -s /usr/share/pyshared/${filename}/MicrodiaV4Header.png ${pkgdir}/usr/lib/python2.6/site-packages/${filename}/
46 install -D ${startdir}/extra/${libname}-test ${pkgdir}/usr/bin/${libname}-test