updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / anic-hg / PKGBUILD
blob08cd8527072b9435e4a96f7b56a0f764eee8449c
1 # Contributor: Michael Fellinger <mf@rubyists.com>
2 pkgname=anic-hg
3 pkgver=722
4 pkgrel=1
5 pkgdesc="Experimental, high-performance, implicitly parallel, deadlock-free general-purpose dataflow programming language"
6 arch=(x86_64)
7 url="https://code.google.com/p/anic/"
8 license=('GPL')
9 groups=()
10 depends=(gcc-libs)
11 makedepends=('mercurial')
12 provides=(anic)
13 conflicts=(anic)
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=(uintptr.patch)
19 noextract=()
20 md5sums=('561bd88c3f36deeaeee016bd377000b6')
22 _hgroot="https://anic.googlecode.com/hg"
23 _hgrepo="anic"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to Mercurial server...."
29   if [ -d $_hgrepo ] ; then
30     cd $_hgrepo
31     hg pull -u || return 1
32     msg "The local files are updated."
33   else
34     hg clone $_hgroot $_hgrepo || return 1
35   fi
37   msg "Mercurial checkout done or server timeout"
38   msg "Starting make..."
40   rm -rf "$srcdir/$_hgrepo-build"
41   cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
42   cd "$srcdir/$_hgrepo-build"
44   #
45   # BUILD HERE
46   #
49   patch -p1 -i "${srcdir}/uintptr.patch" || return 1
50   make || return 1
51   make test || return 1
52   install -D -m755 anic $pkgdir/bin/anic
53   install -D -m644 man/anic.1 $pkgdir/usr/share/man/man1/anic.1
54   # make DESTDIR="$pkgdir/" install || return 1
55