updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / aurdown / PKGBUILD
blob5a3a4aba303360fbb09638d8e4c25afb9bfa41b0
1 # Maintainer: Nathan Owe <ndowens.aur at gmail dot com>
2 pkgname=aurdown
3 pkgver=2.2
4 pkgrel=2
5 pkgdesc="AUR downloader written in Python"
6 arch=('any')
7 url="http://github.com/ndowens/aurdown"
8 license=('GPL3')
9 depends=('python' 'wget' 'links')
10 makedepends=('git')
12 _gitroot="git://github.com/ndowens/aurdown.git"
13 _gitname="aurdown"
15 package() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   
32   cd "$srcdir/$_gitname-build"
33   install -d $pkgdir/usr/bin
34   install -Dm755 aurdown $pkgdir/usr/bin/aurdown
35