updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / aldrin-hg / PKGBUILD
blob20f36f2f0da99b8f3453e6acbe1df92b2d63842e
1 # Contributor: Berkus <berkus@madfire.net>
2 # Contributor: Robert Emil Berge <filoktetes@linuxophic.org>
3 # Contributor: Sebastien Piccand <sebcactus gmail com>
4 # Contributor: SpepS <dreamspepser at yahoo dot it>
5 # Maintainer: Gimmeapill <gimmeapill at gmail dot com>
7 pkgname=aldrin-hg
8 pkgver=724
9 pkgrel=1
10 pkgdesc="A Buzz-like tracker"
11 arch=('i686' 'x86_64')
12 license=('GPL')
13 url="http://www.aldrin.eu"
14 depends=('hicolor-icon-theme' 'pygtk' 'armstrong' 'python2-numpy')
15 makedepends=('scons' 'mercurial')
16 provides=('aldrin')
17 conflicts=('neil' 'libneil')
18 install="$pkgname.install"
20 _hgroot=http://bitbucket.org/paniq
21 _hgrepo=aldrin
23 build() {
25   cd "$srcdir"
26   msg "Connecting to Mercurial server...."
27   if [ -d $_hgrepo ]; then
28     cd $_hgrepo
29     hg pull -u
30     msg "The local files are updated."
31   else
32     hg clone $_hgroot/$_hgrepo $_hgrepo
33   fi
35   msg "Mercurial clone done or server timeout"
36   msg "Starting make..."
38   rm -rf "$srcdir/$_hgrepo-build"
39   cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
40   cd "$srcdir/$_hgrepo-build"
42   # Python2 fixes
43   export PYTHON="python2"
44   sed \
45         -e "s_\(env python\).*_\12_" \
46         -e "s_\(bin/python\).*_\12_" \
47         -i `grep -rlE "(env python|bin/python)" .`
50 package() {
52   cd "$srcdir/$_hgrepo-build"
54   scons install PREFIX=/usr DESTDIR="$pkgdir/"