updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / rdfextras / PKGBUILD
blob28d0101ccb87cf9ed6b0204028c3733a6cd27ac7
1 # Contributor: Leontius Adhika Pradhana <leon@leapon.net>
3 pkgname=rdfextras
4 pkgver=10
5 pkgrel=1
6 pkgdesc="A collection of extra utilities based on RDFLib"
7 url="http://code.google.com/p/rdfextras/"
8 license=('custom:BSD')
9 arch=('i686' 'x86_64')
10 depends=('python2' 'rdflib')
11 makedepends=('mercurial')
12 source=()
13 md5sums=()
15 _hgroot="https://rdfextras.googlecode.com/hg/"
16 _hgrepo="rdfextras"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to Mercurial server...."
22   if [ -d $_hgrepo ] ; then
23     cd $_hgrepo
24     hg pull -u || return 1
25     msg "The local files are updated."
26   else
27     hg clone $_hgroot $_hgrepo || return 1
28   fi
29   msg "Mercurial checkout done or server timeout"
30   msg "Running setup.py..."
31   
32   python2 setup.py build || return 1
33   python2 setup.py install --root=$pkgdir || return 1