summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6aa816373e7defff462e2901d00667248fd4d55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Kyle Keen <keenerd@gmail.com>

pkgname=bandicoot-git
pkgver=20110702
pkgrel=1
pkgdesc="A relational set based programming system."
url="http://bandilab.org/"
arch=('i686' 'x86_64')
license=('Apache')
depends=('glibc')
makedepends=('git')
conflicts=("bandicoot")
provides=("bandicoot")
source=('git://github.com/bandilab/bandicoot.git')
md5sums=('SKIP')

_rootname=bandicoot

pkgver() {
  cd "$_rootname"
  git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
}

build() {
  cd "$_rootname"
  case $CARCH in
    'i686')
      ./ctl dist -m32 ;;
    'x86_64')
      ./ctl dist -m64 ;;
  esac
}

package() {
  cd "$_rootname"
  install -Dm755 bandicoot-v3/bandicoot "$pkgdir/usr/bin/bandicoot"
}