summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae5ce010f7b418579588d6b30be0f8ab2b6ec444 (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
# Maintainer: Alex Dewar <a.dewar@sussex.ac.uk>
pkgname=brahms-git
pkgver=0.7.3+git32ca5f7
pkgrel=2
pkgdesc="The BRAHMS simulation execution engine"
arch=(i686 x86_64)
url="https://github.com/BRAHMS-SystemML/brahms"
groups=()
depends=(python zlib)
makedepends=(git cmake)
provides=("brahms")
conflicts=("brahms")
source=("git+$url")
md5sums=(SKIP)

pkgver() {
	cd "brahms"
	echo 0.7.3+git$(git rev-parse --short HEAD)
}

prepare() {
	cd "brahms"
	rm -rf build
	mkdir build
	cd build
	cmake -DSTANDALONE_INSTALL=ON -DCOMPILE_WITH_X11=OFF -DCMAKE_INSTALL_PREFIX=/usr ..
}

build() {
	cd "brahms/build"
	make
}

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