aports/testing/pari/APKBUILD
2024-07-20 21:49:49 +00:00

51 lines
1.2 KiB
Plaintext

# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=pari
pkgver=2.15.5
pkgrel=0
pkgdesc="computer algebra system designed for fast computations in number theory"
url="https://pari.math.u-bordeaux.fr/"
arch="all !x86 !armv7 !armhf" # x86/armv7/armhf failed test matsnf-sta and matsnf-dyn
license="GPL-2.0-or-later"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="gmp-dev readline-dev perl"
checkdepends="diffutils" # BusyBox diff: unrecognized option: c
subpackages="$pkgname-dev $pkgname-libs:_lib $pkgname-doc"
source="https://pari.math.u-bordeaux.fr/pub/pari/unix/pari-$pkgver.tar.gz"
build() {
export CFLAGS="$CFLAGS -O2 -flto=auto"
export CPPFLAGS="$CPPFLAGS -O2 -flto=auto"
./Configure \
--prefix=/usr \
--mt=pthread \
--with-readline \
--with-gmp \
--graphic=svg
make all
}
check() {
make dobench
}
package() {
make DESTDIR="$pkgdir" install
}
_lib() {
# symlink is backwards so it doesn't move otherwise
amove usr/lib/libpari*
}
doc() {
default_doc
amove usr/share/pari/doc \
usr/share/pari/examples
}
sha512sums="
59b2ebed43176f1ee750146053644bffbf673b4b4810134bc39132665941152772afb7a9332b842fc64e5ab8d5747a872c1b8ff327d3bd5eedaa1591691fff13 pari-2.15.5.tar.gz
"