[arch-commits] Commit in lhapdf/trunk (PKGBUILD)
Konstantin Gizdov
kgizdov at gemini.archlinux.org
Fri Nov 26 13:11:09 UTC 2021
Date: Friday, November 26, 2021 @ 13:11:08
Author: kgizdov
Revision: 1054858
upgpkg: lhapdf 6.4.0-2: be explicit about configure variables
Modified:
lhapdf/trunk/PKGBUILD
----------+
PKGBUILD | 37 +++++++++++++++++++++++--------------
1 file changed, 23 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-26 12:50:11 UTC (rev 1054857)
+++ PKGBUILD 2021-11-26 13:11:08 UTC (rev 1054858)
@@ -3,7 +3,7 @@
# Contributor: JP-Ellis <josh at jpellis dot me>
pkgname=lhapdf
pkgver=6.4.0
-pkgrel=1
+pkgrel=2
pkgdesc="A particle physics tool for evaluating PDFs from discretised data files"
arch=('x86_64')
url="https://lhapdf.hepforge.org/"
@@ -15,26 +15,35 @@
sha256sums=('7d2f0267e2d65b0ddee048553b342d7c893a6dbabe1e326cad62de0010dd810c')
prepare() {
- cd "${srcdir}/LHAPDF-${pkgver}"
- sed -e 's/print Cython.Compiler.Version.version/print (Cython.Compiler.Version.version)/g' -i m4/cython.m4
+ cd "${srcdir}/LHAPDF-${pkgver}"
+ sed -e 's/print Cython.Compiler.Version.version/print (Cython.Compiler.Version.version)/g' -i m4/cython.m4
}
build() {
- cd "${srcdir}/LHAPDF-${pkgver}"
- autoreconf -i
- ## need to rebuild Python extension code with up-to-date Cython for Python 3.7
- ## will eventually be fixed upstream
- touch wrappers/python/lhapdf.pyx
- ./configure --prefix=/usr --datadir=/usr/share/lhapdf --docdir=/usr/share/doc/lhapdf --pdfdir=/usr/share/lhapdf/LHAPDF
- make
+ cd "${srcdir}/LHAPDF-${pkgver}"
+ autoreconf -i
+ ## need to rebuild Python extension code with up-to-date Cython for Python 3.7
+ ## will eventually be fixed upstream
+ touch wrappers/python/lhapdf.pyx
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --runstatedir=/run \
+ --datarootdir=/usr/share/${pkgname} \
+ --datadir=/usr/share/${pkgname} \
+ --docdir=/usr/share/doc/${pkgname} \
+ --pdfdir=/usr/share/${pkgname}/LHAPDF \
+ --localedir=/usr/share/locale
+ make
}
check() {
- cd "${srcdir}/LHAPDF-${pkgver}"
- make -k check
+ cd "${srcdir}/LHAPDF-${pkgver}"
+ make -k check
}
package() {
- cd "${srcdir}/LHAPDF-${pkgver}"
- make DESTDIR="${pkgdir}/" install
+ cd "${srcdir}/LHAPDF-${pkgver}"
+ make DESTDIR="${pkgdir}/" install
}
More information about the arch-commits
mailing list