updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / python2-gntp-git / PKGBUILD
blob888c9eec209ab869ce4c99ca5b4f1b30f551c038
1 # Maintainer: Gordin <9ordin @t gmail dot com>
3 pkgname='python2-gntp-git'
4 pkgver=20111028
5 pkgrel=1
6 pkgdesc='Python bindings for the Growl Notification Transport Protocol'
7 arch=('any')
8 url='http://kungfudiscomonkey.net/gntp/'
9 license=('MIT')
10 depends=('python2')
11 provides=('python2-gntp')
12 makedepends=('git')
14 _gitroot="https://github.com/kfdm/gntp.git"
15 _gitname="gntp"
17 build() {
18   cd "${srcdir}"
19   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} --depth=1
26   fi
28   msg "GIT checkout done or server timeout"
31 package() {
32     cd ${srcdir}/${_gitname}
33     python2 setup.py install --root=${pkgdir}
34     install -D -m644 "${srcdir}/gntp/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"