diff options
author | Filippo Falezza | 2022-12-14 13:41:08 +0000 |
---|---|---|
committer | Filippo Falezza | 2022-12-14 13:41:08 +0000 |
commit | 4aa7d28f8e2f4b9810794bf1b4b779bc0804fd8f (patch) | |
tree | fbd3e4dded55297a81d06b27a68ed9a9b53e58e9 /PKGBUILD | |
download | aur-4aa7d28f8e2f4b9810794bf1b4b779bc0804fd8f.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0e0f7af3981b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,72 @@ +# Maintainer: Filippo Falezza <filippo dot falezza at outlook dot it> + +pkgname='geant4-full' +pkgver=11.1.0 +pkgrel=1 +pkgdesc="A simulation toolkit for particle physics interactions - includes all the optional libraries" +depends=( + 'cmake>=3.16' + 'xerces-c>=3' + 'qt6-base' + 'glu' + 'openmotif' + 'soqt' + 'zlib' + 'python>=3' + 'boost' +) +conflicts=('geant4_devel' 'geant4' 'geant4-debug') +optdepends=( + 'java-environment' + 'tcsh' + 'geant4-LEND' +) +url="http://geant4.cern.ch/" +arch=('x86_64') +license=('custom: http://geant4.cern.ch/license/') +options=('!emptydirs') +install=geant4.install +source=( + "http://geant4-data.web.cern.ch/releases/geant4-v${pkgver}.tar.gz" + "geant4.install" +) +sha256sums=( + '051e43066152c373f74746bdffe6f0c9e4175ad9cf1eb7b67da0dc1a05d0b985' + '601de16ffd6cbcd57a8fd7fe97845979c08a805f62178b482c11f2c1370957cb' +) + +build() { + + [ -d ${srcdir}/build ] || mkdir ${srcdir}/build + cd ${srcdir}/build + + env -i \ + QT_SELECT=6 \ + PATH=/usr/bin \ + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DGEANT4_BUILD_MULTITHREADED=ON \ + -DGEANT4_INSTALL_DATA=ON \ + -DGEANT4_USE_G3TOG4=ON \ + -DGEANT4_USE_GDML=ON \ + -DGEANT4_USE_INVENTOR_QT=ON \ + -DGEANT4_USE_OPENGL_X11=ON \ + -DGEANT4_USE_QT=ON \ + -DGEANT4_USE_RAYTRACER_X11=ON \ + -DGEANT4_USE_SYSTEM_ZLIB=ON \ + -DGEANT4_USE_XM=ON \ + -DGEANT4_INSTALL_PACKAGE_CACHE=OFF \ + -DGEANT4_USE_PYTHON=ON \ + -DGEANT4_USE_TOOLSSG=QT \ + -DGEANT4_BUILD_TLS_MODEL=global-dynamic \ + ../geant4-v${pkgver} + + make VERBOSE=1 + +} + +package() { + cd ${srcdir}/build + make DESTDIR="${pkgdir}" install +} |