summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf5bbcd4d5377208cd77c58350d19f1f47c41c8e (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
_gitname=replicode
pkgname=$_gitname-git
pkgver=r582.7b38710
pkgrel=1
pkgdesc="Constructivist AI language and runtime"
url="http://wiki.humanobs.org/public:replicode:replicode-main"
arch=('i686' 'x86_64')
license=('Custom')
depends=('glibc')
makedepends=('git')
source=("git+https://github.com/sandsmark/$_gitname.git")
md5sums=('SKIP')

pkgver() {
  cd 'replicode'
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    mkdir -p build
}

build() {
  cd build
  cmake ../$_gitname -DCMAKE_INSTALL_PREFIX=/usr
  make VERBOSE=1
}

check() {
  cd build
  make test
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}