updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / orc-git / PKGBUILD
blobefe1e4459683b33eb105f513439fbae3ef3d242e
1 # Contributor: Nezmer <Nezmer@allurelinux.org>
2 pkgname=orc-git
3 pkgver=20091227
4 pkgrel=1
5 pkgdesc="The Oil Runtime Compiler"
6 arch=('i686' 'x86_64')
7 url="http://code.entropywave.com/projects/orc"
8 license=('custom')
9 options=('!libtool')
10 makedepends=('git')
11 LDFLAGS="${LDFLAGS/-Wl,--as-needed}"
13 _gitroot="git://code.entropywave.com/git/orc.git"
14 _gitname="orc"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   ./autogen.sh
35   ./configure --prefix=/usr --disable-static
36   make || return 1
37   make DESTDIR="$pkgdir/" install
38   install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
39