void-packages/srcpkgs/pari-seadata/template
Gonzalo Tornaría 7e7df9565f pari-seadata: several improvements
- fix license
- change homepage and use https for downloads
- rename distfiles to include version in name
- compress files (installed-size: 40M -> 19M)
- drop depends on pari so pari can checkdepends on this (cf #29159, #32614)
- add a smaller subpkg pari-seadata-small as in upstream (668k vs 19M)
- add update file
- change of maintainer agreed by motorto
2021-11-09 17:00:25 +01:00

33 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
}
}