PKGBUILDs/extra/pari/PKGBUILD

63 lines
1.8 KiB
Bash
Raw Normal View History

2020-11-03 00:13:21 +00:00
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
2020-04-25 21:22:55 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2020-04-26 01:16:44 +00:00
# - generalize cd Olinux-* for install-bin-sta
2020-04-25 21:22:55 +00:00
pkgname=pari
2024-02-23 20:08:19 +00:00
pkgver=2.15.5
2021-06-24 18:03:15 +00:00
pkgrel=1
2020-04-25 21:22:55 +00:00
pkgdesc='Computer algebra system designed for fast computations in number theory'
url='https://pari.math.u-bordeaux.fr/'
2024-02-23 20:08:19 +00:00
license=(GPL-2.0-or-later)
2020-11-03 00:13:21 +00:00
arch=(x86_64)
2024-02-23 20:08:19 +00:00
depends=(gcc-libs
glibc
gmp
libx11
readline
sh)
makedepends=(chrpath
perl
texlive-latex)
2020-11-03 00:13:21 +00:00
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')
2021-06-24 18:03:15 +00:00
checkdepends=(pari-elldata pari-galdata pari-seadata pari-galpol)
source=(https://pari.math.u-bordeaux.fr/pub/pari/unix/$pkgname-$pkgver.tar.gz{,.asc})
2024-02-23 20:08:19 +00:00
sha256sums=('0efdda7515d9d954f63324c34b34c560e60f73a81c3924a71260a2cc91d5f981'
2021-06-24 18:03:15 +00:00
'SKIP')
2020-11-03 00:13:21 +00:00
validpgpkeys=('42028EA404A2E9D80AC453148F0E7C2B4522E387')
2020-04-25 21:22:55 +00:00
2021-06-24 18:03:15 +00:00
prepare() {
2020-11-03 00:13:21 +00:00
cd $pkgname-$pkgver
sed -e 's|DLLDFLAGS = \$DLLDFLAGS|DLLDFLAGS = $DLLDFLAGS $LDFLAGS|' -i config/Makefile.SH # Honor system LDFLAGS
}
2020-04-25 21:22:55 +00:00
build() {
2020-11-03 00:13:21 +00:00
cd $pkgname-$pkgver
./Configure \
--prefix=/usr \
--with-readline \
--mt=pthread \
--with-gmp
make all
make -C Olinux-* gp-sta
2020-04-25 21:22:55 +00:00
}
check() {
2020-11-03 00:13:21 +00:00
cd $pkgname-$pkgver
2021-06-24 18:03:15 +00:00
make test-all
2020-04-25 21:22:55 +00:00
}
package() {
2020-11-03 00:13:21 +00:00
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" -C Olinux-* install-bin-sta
ln -sf gp.1.gz "$pkgdir"/usr/share/man/man1/pari.1
chrpath -d "$pkgdir"/usr/bin/gp-*
2020-04-25 21:22:55 +00:00
}