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

Antonio Rojas arojas at archlinux.org
Mon Nov 2 22:34:37 UTC 2020


    Date: Monday, November 2, 2020 @ 22:34:37
  Author: arojas
Revision: 740100

Honor system LDFLAGS, build statically linked gp in build(), fix RPATH, add database optdepends

Modified:
  pari/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-02 21:09:51 UTC (rev 740099)
+++ PKGBUILD	2020-11-02 22:34:37 UTC (rev 740100)
@@ -3,19 +3,29 @@
 
 pkgname=pari
 pkgver=2.13.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Computer algebra system designed for fast computations in number theory'
 url='https://pari.math.u-bordeaux.fr/'
 license=(GPL)
 arch=(x86_64)
-depends=(gmp readline libx11)
-makedepends=(perl texlive-core)
-optdepends=('perl: gphelp, tex2mail')
+depends=(gmp libx11)
+makedepends=(perl texlive-core chrpath)
+optdepends=('perl: gphelp, tex2mail'
+            'pari-elldata: J. Cremona elliptic curve database'
+            'pari-galdata: to compute Galois groups in degrees 8 through 11'
+            'pari-seadata: needed by ellap for large primes'
+            'pari-galpol: GALPOL database of polynomials defining Galois extensions of the rationals')
 source=("https://pari.math.u-bordeaux.fr/pub/pari/unix/$pkgname-$pkgver.tar.gz"{,.asc})
 sha256sums=('c811946de9d2c1ed0e97ff08e80d966f9a0b55848b7688406fab229e3948ba93'
             'SKIP')
 validpgpkeys=('42028EA404A2E9D80AC453148F0E7C2B4522E387')
 
+prepare() {
+  cd $pkgname-$pkgver
+  
+  sed -e 's|DLLDFLAGS  = \$DLLDFLAGS|DLLDFLAGS  = $DLLDFLAGS $LDFLAGS|' -i config/Makefile.SH # Honor system LDFLAGS
+}
+
 build() {
   cd $pkgname-$pkgver
 
@@ -30,6 +40,7 @@
     --mt=pthread \
     --with-gmp
   make all
+  make -C Olinux-x86_64 gp-sta
 }
 
 check() {
@@ -40,8 +51,7 @@
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" -C Olinux-x86_64 install-bin-sta
   ln -sf gp.1.gz "$pkgdir"/usr/share/man/man1/pari.1
-
-  cd Olinux-x86_64
-  make DESTDIR="$pkgdir" install-bin-sta
+  chrpath -d "$pkgdir"/usr/bin/gp-*
 }



More information about the arch-commits mailing list