updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / slurpy-git / PKGBUILD
blobbf77424fac3d10f85ad4562d295fb664e816e62e
1 # Contributor: Randy Morris <randy rsontech net>
2 pkgname=slurpy-git
3 pkgver=20101104
4 pkgrel=1
5 pkgdesc="An AUR search/download/update helper in Python"
6 arch=('i686' 'x86_64')
7 url="https://github.com/rson/slurpy"
8 license=('None')
9 depends=('python2')
10 conflicts=('slurpy')
11 provides=('slurpy')
12 optdepends=('python2-cjson: faster processing for large result sets'
13             'python2-pycurl: upload packages to the AUR from the command line')
14 makedepends=('git')
15 source=()
16 md5sums=()
17 #_gitroot="/home/oh/projects/slurpy"
18 _gitroot="git://github.com/rson/slurpy.git"
19 _gitname="slurpy"
20 build() {
21   msg "Connecting to github.com GIT server...."
23   if [ -d ${srcdir}/${_gitname} ] ; then
24     cd ${_gitname} && git pull origin
25     msg "The local files are updated."
26   else
27     git clone ${_gitroot}
28   fi
29   cd $srcdir/$_gitname
30   git checkout tmp
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   cd ${srcdir}/${_gitname}
36   python2 setup.py install --root=${pkgdir} --prefix=/usr
37   install -Dm 755 $srcdir/${_gitname}/slurpyrc $pkgdir/etc/slurpyrc