updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / python-rdflib-hg / PKGBUILD
blobb105e63c7c2de6dc12955dfe10c3ad9d263932f3
1 # Maintainer: Nikolay Bryskin <devel.niks@gmail.com>
3 pkgname=python-rdflib-hg
4 pkgver=0
5 pkgrel=1
6 pkgdesc="A Python3 library for working with RDF, a simple yet powerful language for representing information"
7 arch=('any')
8 url="https://bitbucket.org/gromgull/rdflib-python3"
9 license=('BSD')
10 groups=('devel')
11 depends=('python')
12 makedepends=('python-distribute' 'mercurial')
13 provides=('python-rdflib')
14 source=()
15 _hgroot="https://bitbucket.org/gromgull"
16 _hgrepo="rdflib-python3"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to Mercurial server...."
22   if [ -d $_hgrepo ] ; then
23     cd $_hgrepo
24     hg pull -u
25     msg "The local files are updated."
26   else
27     hg clone $_hgroot $_hgrepo
28   fi
30   msg "Mercurial checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_hgrepo-build"
34   cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
35   cd "$srcdir/$_hgrepo-build"
37   #
38   # BUILD HERE
39   #
41   python setup.py build
44 package() {
45   cd "$srcdir/$_hgrepo-build"
46   python setup.py install --root="$pkgdir/"
47