[arch-commits] Commit in lhapdf/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 04:00:46 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:00:45
  Author: foutrelis
Revision: 748356

archrelease: copy trunk to community-staging-x86_64

Added:
  lhapdf/repos/community-staging-x86_64/
  lhapdf/repos/community-staging-x86_64/PKGBUILD
    (from rev 748355, lhapdf/trunk/PKGBUILD)
  lhapdf/repos/community-staging-x86_64/lhapdf.install
    (from rev 748355, lhapdf/trunk/lhapdf.install)

----------------+
 PKGBUILD       |   40 ++++++++++++++++++++++++++++++++++++++++
 lhapdf.install |   11 +++++++++++
 2 files changed, 51 insertions(+)

Copied: lhapdf/repos/community-staging-x86_64/PKGBUILD (from rev 748355, lhapdf/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-10 04:00:45 UTC (rev 748356)
@@ -0,0 +1,40 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Frank Siegert <frank dot siegert at googlemail dot com>
+# Contributor: JP-Ellis <josh at jpellis dot me>
+pkgname=lhapdf
+pkgver=6.3.0
+pkgrel=2
+pkgdesc="A particle physics tool for evaluating PDFs from discretised data files"
+arch=('x86_64')
+url="https://lhapdf.hepforge.org/"
+license=('GPL3')
+makedepends=('cython')
+depends=('python')
+install=lhapdf.install
+source=("https://www.hepforge.org/archive/lhapdf/LHAPDF-${pkgver}.tar.gz")
+sha256sums=('ed4d8772b7e6be26d1a7682a13c87338d67821847aa1640d78d67d2cef8b9b5d')
+
+prepare() {
+    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
+}
+
+check() {
+    cd "${srcdir}/LHAPDF-${pkgver}"
+    make -k check
+}
+
+package() {
+    cd "${srcdir}/LHAPDF-${pkgver}"
+    make DESTDIR="${pkgdir}/" install
+}

Copied: lhapdf/repos/community-staging-x86_64/lhapdf.install (from rev 748355, lhapdf/trunk/lhapdf.install)
===================================================================
--- community-staging-x86_64/lhapdf.install	                        (rev 0)
+++ community-staging-x86_64/lhapdf.install	2020-11-10 04:00:45 UTC (rev 748356)
@@ -0,0 +1,11 @@
+post_install() {
+    echo 'PDF sets are stored in /usr/share/lhapdf/LHAPDF'
+    echo 'You can download PDF sets with the "lhapdf" command like so:'
+    echo '    $ lhapdf ls'
+    echo '    # sudo lhapdf install CT10'
+}
+
+post_upgrade() {
+    echo 'To update your PDF sets, please run:'
+    echo '    # lhapdf install $(lhapdf list --outdated)'
+}



More information about the arch-commits mailing list