[arch-commits] Commit in hepmc/repos (2 files)

Konstantin Gizdov kgizdov at archlinux.org
Mon May 25 16:29:22 UTC 2020


    Date: Monday, May 25, 2020 @ 16:29:21
  Author: kgizdov
Revision: 634677

archrelease: copy trunk to community-testing-x86_64

Added:
  hepmc/repos/community-testing-x86_64/
  hepmc/repos/community-testing-x86_64/PKGBUILD
    (from rev 634676, hepmc/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: hepmc/repos/community-testing-x86_64/PKGBUILD (from rev 634676, hepmc/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-05-25 16:29:21 UTC (rev 634677)
@@ -0,0 +1,41 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Frank Siegert <frank dot siegert at googlemail dot com>
+pkgname=hepmc
+_pkgname=HepMC3
+pkgver=3.2.1
+pkgrel=1
+pkgdesc="A particle physics package for storing collision events from Monte Carlo generators"
+arch=('x86_64')
+url="http://hepmc.web.cern.ch/"
+license=('GPL2')
+depends=('bash')
+makedepends=('cmake' 'root' 'pythia8' 'python')
+optdepends=('root: ROOT I/O'
+            'pythia8: Pythia support'
+            'python: Python interface')
+source=("${pkgname}-${pkgver}.tar.gz::http://hepmc.web.cern.ch/${pkgname}/releases/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('6e4e4bb5708af105d4bf74efc2745e6efe704e942d46a8042f7dcae37a4739fe')
+
+build() {
+    mkdir build
+    cd build
+    cmake "${srcdir}/${_pkgname}-${pkgver}" \
+      -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+      -DHEPMC3_PYTHON_VERSIONS='3.X' \
+      -DHEPMC3_ENABLE_TEST=ON \
+      -DHEPMC3_BUILD_DOCS=ON \
+      -DHEPMC3_BUILD_EXAMPLES=ON \
+      -DHEPMC3_INSTALL_INTERFACES=ON \
+      -Dmomentum=GEV -Dlength=MM
+    make
+}
+
+package() {
+    cd "${srcdir}/build"
+    make DESTDIR="${pkgdir}/" install
+    # fix CMake
+    install -d "${pkgdir}/usr/lib/cmake"
+    mv "${pkgdir}/usr/share/HepMC3/cmake" "${pkgdir}/usr/lib/cmake/${_pkgname}"
+    sed -i 's@${CMAKE_CURRENT_LIST_DIR}/../../../@/usr@' \
+      "${pkgdir}/usr/lib/cmake/${_pkgname}/${_pkgname}Config.cmake"
+}


More information about the arch-commits mailing list