community/pari to 2.13.0-2

This commit is contained in:
Kevin Mihelich 2020-11-03 00:13:21 +00:00
parent 0b8a1deef4
commit f9e6280cac

View file

@ -1,54 +1,61 @@
# Maintainer: Gaetan Bisson <bisson@archlinux.org> # Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - comment adding -flto to CFLAGS # - comment adding -flto to CFLAGS
# - generalize cd Olinux-* for install-bin-sta # - generalize cd Olinux-* for install-bin-sta
pkgname=pari pkgname=pari
pkgver=2.11.4 pkgver=2.13.0
pkgrel=3 pkgrel=2
pkgdesc='Computer algebra system designed for fast computations in number theory' pkgdesc='Computer algebra system designed for fast computations in number theory'
url='https://pari.math.u-bordeaux.fr/' url='https://pari.math.u-bordeaux.fr/'
license=('GPL') license=(GPL)
arch=('x86_64') arch=(x86_64)
depends=('gmp' 'readline' 'libx11') depends=(gmp libx11)
makedepends=('perl' 'texlive-core') makedepends=(perl texlive-core chrpath)
optdepends=('perl: gphelp, tex2mail') optdepends=('perl: gphelp, tex2mail'
validpgpkeys=('42028EA404A2E9D80AC453148F0E7C2B4522E387') 'pari-elldata: J. Cremona elliptic curve database'
source=("https://pari.math.u-bordeaux.fr/pub/pari/unix/${pkgname}-${pkgver}.tar.gz"{,.asc}) 'pari-galdata: to compute Galois groups in degrees 8 through 11'
sha256sums=('bfc88fc4f7352f4840e6e352c72f0369cbea8a45403b1834a6269f3709970b1c' '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') 'SKIP')
validpgpkeys=('42028EA404A2E9D80AC453148F0E7C2B4522E387')
conflicts=('pari-sage') prepare() {
replaces=("pari-sage<=1:${pkgver}") cd $pkgname-$pkgver
sed -e 's|DLLDFLAGS = \$DLLDFLAGS|DLLDFLAGS = $DLLDFLAGS $LDFLAGS|' -i config/Makefile.SH # Honor system LDFLAGS
}
build() { build() {
cd "${srcdir}/${pkgname}-${pkgver}" cd $pkgname-$pkgver
# Upstream Bill Allombert recommends linking gp statically against # Upstream Bill Allombert recommends linking gp statically against
# libpari.so with -flto to recover speed losses incurred when enabling # libpari.so with -flto to recover speed losses incurred when enabling
# pthread support. That's also what he now does for the Debian package. # pthread support. That's also what he now does for the Debian package.
#export CFLAGS+=' -flto' #export CFLAGS+=' -flto'
./Configure \ ./Configure \
--prefix=/usr \ --prefix=/usr \
--with-readline \ --with-readline \
--mt=pthread \ --mt=pthread \
--with-gmp \ --with-gmp
make all
make all make -C Olinux-* gp-sta
} }
check() { check() {
cd "${srcdir}/${pkgname}-${pkgver}" cd $pkgname-$pkgver
make bench make bench
} }
package() { package() {
cd "${srcdir}/${pkgname}-${pkgver}" cd $pkgname-$pkgver
make DESTDIR="${pkgdir}" install make DESTDIR="$pkgdir" install
ln -sf gp.1.gz "${pkgdir}"/usr/share/man/man1/pari.1 make DESTDIR="$pkgdir" -C Olinux-* install-bin-sta
ln -sf gp.1.gz "$pkgdir"/usr/share/man/man1/pari.1
cd Olinux-* chrpath -d "$pkgdir"/usr/bin/gp-*
make DESTDIR="${pkgdir}" install-bin-sta
} }