updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / gui-microdia-git / PKGBUILD
blobeaa8e1f616c8c50ef39c8dba2c8ccb4b417efede
1 # Contributor: Giovanni Scafora <giovanni@archlinux.org>
2 # Contributor: Chris Giles <Chris.G.27 (at) Gmail.com>
4 libname=microdia
5 filename=gui${libname}
6 pkgname=gui-${libname}-git
7 pkgver=20090503
8 pkgrel=1
9 pkgdesc="A GUI for managing V4L2 Webcam Preferences for Microdia (0c45) webcams"
10 arch=("any")
11 url="https://groups.google.com/group/${libname}/msg/02d97178b5a83cb3"
12 license=("GPL")
13 depends=("${libname}-git" "gtk2" "python" "python-configobj" "ivtv-utils")
14 makedepends=("git")
15 optdepends=("mplayer: to test the Microdia webcam")
16 #install=${pkgname}.install
18 source=()
19 md5sums=()
20 _gitroot="git://repo.or.cz/${filename}.git"
21 _gitname="${filename}"
23 build() {
24         cd ${srcdir}
26         # Repository
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."
31         else
32                 git clone $_gitroot || return 1
33         fi
34         msg "GIT checkout done or server timeout"
35         msg "Starting make..."
37         # Removals
38         rm -rf ${srcdir}/$_gitname-build
39         cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
40         cd ${srcdir}/$_gitname-build
42         # Installation
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