blob: fab76e4479bfd47e78d53be4ad31a4df9cf846c6 (
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
|
# Maintainer: gagnonlg NOSPAM protonmail NOSPAM com
# See also: https://github.com/paulgessinger/dd4hep-aur
pkgname=dd4hep
_pkgver=01-19
pkgver=$(echo $_pkgver | sed 's/-/./g')
pkgrel=1
pkgdesc="Detector Description Toolkit for High Energy Physics"
arch=('x86_64')
url="https://dd4hep.web.cern.ch/dd4hep/"
license=('LGPL3')
depends=('xerces-c'
'geant4>=10.2.2'
'root>=6.08'
'boost-libs>=1.49'
'intel-tbb'
'cern-vdt'
)
makedepends=('boost>=1.49' 'cmake>=3.12')
source=(https://github.com/AIDASoft/$pkgname/archive/v$_pkgver.tar.gz)
md5sums=('c439da43813ecf3d417d9edc2cfb605b')
prepare () {
_pyver="$(python -V | awk '{print $2}')"
sed -i "s/SET(REQUIRE_PYTHON_VERSION \${ROOT_PYTHON_VERSION})/SET(REQUIRE_PYTHON_VERSION \"$_pyver\")/" \
"$srcdir/DD4hep-$_pkgver"/cmake/DD4hepBuild.cmake
}
build() {
cd "$srcdir/DD4hep-$_pkgver"
mkdir -p build && cd build
# NOTE: build currently fails with latest tbb, so turned off for now
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_STANDARD=17 \
-DDD4HEP_USE_GEANT4=ON \
-DDD4HEP_USE_TBB=OFF \
-DDD4HEP_USE_XERCESC=ON \
..
make
}
package() {
cd "$srcdir/DD4hep-$_pkgver/build"
make DESTDIR="${pkgdir}" install
}
|