void-packages/srcpkgs/pari-seadata/template

34 lines
1.1 KiB
Bash

# Template file for 'pari-seadata'
pkgname=pari-seadata
version=20090618
revision=4
create_wrksrc=yes
depends="pari-seadata-small"
short_desc="PARI/GP package needed by ellap for large primes up to 750 bits"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="GPL-2.0-or-later"
homepage="https://pari.math.u-bordeaux.fr/packages.html"
distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/${pkgname#pari-}.tgz>${pkgname}-${version}.tar.gz"
checksum=c9282a525ea3f92c1f9c6c69e37ac5a87b48fb9ccd943cfd7c881a3851195833
do_build() {
# compressed data files work ok (install-size: 40M -> 19M)
find data -type f -size +4k -print0 | xargs -0 gzip -9
}
do_install() {
vmkdir usr/share/pari
vcopy "data/*" usr/share/pari
}
pari-seadata-small_package() {
short_desc="PARI/GP package needed by ellap for large primes up to 350 bits"
pkg_install() {
# much smaller version suitable for primes up to 350 bits.
# identical to seadata-small.tgz in pari packages (668k)
vmove usr/share/pari/seadata/sea2
vmove usr/share/pari/seadata/sea0.gz
vmove usr/share/pari/seadata/README
}
}