updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / tvcmd-git / PKGBUILD
blobf8d85486be4c52e7dbc151b7595db299bfe86ba4
1 # Maintainer: Army <uli dot armbruster at google's mail service>
3 pkgname=tvcmd-git
4 pkgver=20111222
5 pkgrel=1
6 pkgdesc="a command line tool to keep track of tv shows episodes"
7 arch=('any')
8 url="https://sourceforge.net/projects/tvcmd/"
9 license=('GPL3')
10 depends=('python' 'python-httplib2')
11 makedepends=('git')
12 conflicts=('tvcmd')
13 replaces=('tvcmd')
15 _gitroot="git://git.code.sf.net/p/tvcmd/code"
16 _gitname="tvcmd"
18 build() {
19         cd "${srcdir}"
20         msg "Connecting to GIT server...."
21         if [ -d ${_gitname} ] ; then
22                 cd ${_gitname} && git pull origin
23                 msg "The local files are updated."
24         else
25                 git clone ${_gitroot} ${_gitname}
26         fi
27         
28         msg "GIT checkout done or server timeout"
29         rm -rf "${srcdir}/${_gitname}-build"
30         git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
33 package() {
34         cd "${srcdir}/${_gitname}-build"
35         python setup.py install --root "${pkgdir}"