[arch-commits] Commit in hepmc/trunk (PKGBUILD)

Konstantin Gizdov kgizdov at archlinux.org
Mon May 25 15:29:04 UTC 2020


    Date: Monday, May 25, 2020 @ 15:29:04
  Author: kgizdov
Revision: 634555

upgpkg: hepmc 2.06.10-6

Modified:
  hepmc/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-25 15:28:48 UTC (rev 634554)
+++ PKGBUILD	2020-05-25 15:29:04 UTC (rev 634555)
@@ -1,23 +1,26 @@
 # Maintainer: Konstantin Gizdov <arch at kge dot pw>
 # Contributor: Frank Siegert <frank dot siegert at googlemail dot com>
 pkgname=hepmc
-pkgver=2.06.09
-pkgrel=5
+pkgver=2.06.10
+pkgrel=6
 pkgdesc="A particle physics package for storing collision events from Monte Carlo generators"
 arch=('x86_64')
 url="http://lcgapp.cern.ch/project/simu/HepMC/"
+url="http://hepmc.web.cern.ch/"
 license=('GPL2')
 depends=('bash')
-source=("http://lcgapp.cern.ch/project/simu/HepMC/download/HepMC-${pkgver}.tar.gz")
-sha256sums=('c60724ca9740230825e06c0c36fb2ffe17ff1b1465e8656268a61dffe1611a08')
+makedepends=('cmake')
+source=("${pkgname}-${pkgver}.tar.gz::http://hepmc.web.cern.ch/${pkgname}/releases/${pkgname}${pkgver}.tgz")
+sha256sums=('5adedd9e3f7447e1e5fc01b72f745ab87da2c1611df89208bb3d7c6ea94c11a4')
 
 build() {
-    cd "${srcdir}/HepMC-${pkgver}"
-    ./configure --prefix=/usr --with-momentum=GEV --with-length=MM
+    mkdir build
+    cd build
+    cmake "${srcdir}/HepMC-${pkgver}" -DCMAKE_INSTALL_PREFIX:PATH=/usr -Dmomentum=GEV -Dlength=MM
     make
 }
 
 package() {
-    cd "${srcdir}/HepMC-${pkgver}"
+    cd "${srcdir}/build"
     make DESTDIR="${pkgdir}/" install
 }


More information about the arch-commits mailing list