updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bandicoot-git / PKGBUILD
blob50f11cdcf1a4503125c04b1eef059c786f80ad36
1 # Contributor: Kyle Keen <keenerd@gmail.com>
3 pkgname=bandicoot-git
4 pkgver=20110702
5 pkgrel=1
6 pkgdesc="A relational set based programming system."
7 url="http://bandilab.org/"
8 arch=('i686' 'x86_64')
9 license=('Apache')
10 depends=()
11 conflicts=("bandicoot")
12 provides=("bandicoot")
13 source=()
14 md5sums=()
16 _gitroot="git://bandilab.org/bandicoot"
17 _gitname="bandicoot"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to bandilab.org..."
23   if [ -d ${srcdir}/${_gitname} ] ; then
24     cd ${_gitname} && git pull origin
25     msg "The local files are updated."
26   else
27     git clone --depth 1 ${_gitroot}
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting ctl..."
33   case $CARCH in
34     'i686')
35       ./ctl dist -m32 ;;
36     'x86_64')
37       ./ctl dist -m64 ;;
38   esac
39   install -Dm755 bandicoot-v3/bandicoot "$pkgdir/usr/bin/bandicoot"