summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d0d9c261266ed1918eb4af29bfa834e9aa0341c7 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: Alex Dewar <a.dewar@sussex.ac.uk>
pkgname=spinecreator-git
pkgver=0.9.6+gite6f3b58
pkgrel=1
pkgdesc="A user interface for creating neural network simulations"
arch=(i686 x86_64)
url="https://github.com/SpineML/SpineCreator.git"
license=('GPL3')
depends=(brahms qt5-base graphviz)
makedepends=(git cmake)
provides=("spinecreator")
conflicts=("spinecreator")
source=("git+https://github.com/SpineML/SpineML_PreFlight.git"
        "git+https://github.com/SpineML/SpineML_2_BRAHMS.git"
		"git+https://github.com/SpineML/SpineCreator.git")
noextract=()
md5sums=(SKIP SKIP SKIP)
validpgpkeys=()

pkgver() {
	echo 0.9.6+git$(git rev-parse --short HEAD)
}

build() {
	# Make SpineML_PreFlight
	cd SpineML_PreFlight
	rm -rf build
	mkdir build
	cd build
	cmake -DCMAKE_INSTALL_PREFIX=/usr ..
	make
	cd ../..

	# Make SpineCreator
	cd SpineCreator
	qmake
	make
}

package() {
	# Install SpineML_PreFlight
	cd SpineML_PreFlight/build
	make DESTDIR="$pkgdir" install
	cd ../..

	# Install SpineCreator
	cd SpineCreator
	make INSTALL_ROOT="$pkgdir/" install
	cd ..

	# Install SpineML_2_BRAHMS scripts
	mkdir -p "$pkgdir/opt/SpineML_2_BRAHMS"
	cp -R SpineML_2_BRAHMS/* "$pkgdir/opt/SpineML_2_BRAHMS"
}