blob: 2c398f41234cfc1519495f50cf6987883fbd1bd7 (
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
55
56
57
58
59
60
61
62
63
|
# Maintainer: Bastian Löher <b.loeher@gsi.de>
pkgname=opengate
pkgver=9.4
pkgrel=1
pkgdesc="Open GATE - numerical simulations in medical imaging and radiotherapy"
arch=('x86_64')
url="https://github.com/OpenGATE/Gate"
license=('LGPL3')
groups=()
makedepends=('cmake' 'gcc')
depends=('root' 'geant4')
provides=()
conflicts=()
replaces=()
backup=()
options=('!emptydirs' 'staticlibs' 'libtool' '!strip')
install=
changelog=
source=("https://github.com/OpenGATE/Gate/archive/v${pkgver}.tar.gz")
noextract=()
md5sums=('4c662b0cdc4b368518ee03ff68729308')
# Do not compress the package for installation
# PKGEXT='.pkg.tar'
# Compress using lightweight gzip
PKGEXT='.pkg.tar.gz'
prepare() {
# Execute cmake
echo "You need to build geant4 with option"
echo " -DGEANT4_BUILD_MULTITHREADED=OFF"
echo "to properly use Gate. It does not yet"
echo "work with Geant4 in multithreaded mode."
cd ${srcdir}
[ -d build ] || mkdir build
cd build
cmake \
-DGATE_USE_ECAT7=OFF \
-DGATE_USE_GPU=OFF \
-DGATE_USE_ITK=OFF \
-DGATE_USE_LMF=OFF \
-DGATE_USE_OPTICAL=ON \
-DGATE_USE_RTK=OFF \
-DGATE_USE_STDC11=ON \
-DGATE_USE_DAVIS=OFF \
-DGEANT4_USE_SYSTEM_CLHEP=OFF \
../Gate-${pkgver}
:
}
build() {
cd ${srcdir}/build
make -j$(nproc)
}
package() {
cd ${srcdir}/build
make DESTDIR="${pkgdir}/" install
echo "Optional dependencies: lmf_v3.0 and ecat7"
echo "Done"
}
|