updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / urls-git / PKGBUILD
blob1e07760eb52d93cbefd45ede60291b4d08988f76
1 # Contributor: Henri Häkkinen <henuxd@gmail.com>
3 pkgname=urls-git
4 pkgver=20090523
5 pkgrel=1
6 pkgdesc="URL extractor"
7 arch=('i686' 'x86_64')
8 url="http://henux.nor.fi/projects/urls.php"
9 license=('GPL')
10 depends=('python')
11 makedepends=('git')
12 source=()
13 md5sums=()
15 _gitroot="git://github.com/henux/urls.git"
16 _gitname="urls"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git-pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   cd "$srcdir/urls" || return 1
33   make PREFIX="$pkgdir/usr" install || return 1