summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcbpark2017-04-01 20:27:04 +0900
committercbpark2017-04-01 20:27:04 +0900
commit6eb279cbb4e742cf44458f95ca8bed7e6d35c093 (patch)
tree2ff7c7f228bb09a11538e880029707c88808def8
parent78f2e61b80bc78faa793ec15b6d3f4e2b6deb8ce (diff)
downloadaur-6eb279cbb4e742cf44458f95ca8bed7e6d35c093.tar.gz
upgpkg: thepeg 2.0.4-2
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD22
2 files changed, 17 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3c0f4978363..4e566fda189 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,12 @@
pkgbase = thepeg
pkgdesc = Toolkit for High Energy Physics Event Generation
pkgver = 2.0.4
- pkgrel = 1
+ pkgrel = 2
url = http://thepeg.hepforge.org
arch = i686
arch = x86_64
license = GPL2
+ makedepends = sed
depends = gsl
depends = lhapdf
depends = hepmc
diff --git a/PKGBUILD b/PKGBUILD
index ad56755b779..e37a3cef535 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,38 @@
# Maintainer: Chan Beom Park <cbpark@gmail.com>
-_pkgrname=ThePEG
+_pkgname=ThePEG
pkgname=thepeg
pkgver=2.0.4
-pkgrel=1
+pkgrel=2
pkgdesc="Toolkit for High Energy Physics Event Generation"
arch=("i686" "x86_64")
url="http://thepeg.hepforge.org"
license=('GPL2')
depends=("gsl" "lhapdf" "hepmc" "rivet" "zlib" "fastjet" "boost")
-source=("http://www.hepforge.org/archive/thepeg/${_pkgrname}-$pkgver.tar.bz2")
+makedepends=("sed")
+source=("http://www.hepforge.org/archive/${pkgname}/${_pkgname}-${pkgver}.tar.bz2")
sha256sums=('f3b625b411667e2708995f1d1379b5b8691406853c8c2cca2f4e4e6e062da0e4')
-build() {
- cd "${_pkgrname}-$pkgver"
+prepare() {
+ cd "$srcdir/${_pkgname}-${pkgver}"
+
sed -i 's/isnan/std::isnan/g' Persistency/PersistentOStream.h \
LesHouches/LesHouchesFileReader.cc \
Utilities/UnitIO.h
sed -i 's/isinf/std::isinf/g' Persistency/PersistentOStream.h \
Utilities/UnitIO.h
+}
+
+build() {
+ cd "$srcdir/${_pkgname}-${pkgver}"
+
./configure --prefix=/usr --with-lhapdf=/usr --with-fastjet=/usr --enable-unitchecks
- make
+ make ${MAKEFLAGS}
}
package() {
- cd "${_pkgrname}-$pkgver"
+ cd "$srcdir/${_pkgname}-${pkgver}"
+
make DESTDIR="$pkgdir" install
install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}