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
This commit is contained in:
Gonzalo Tornaría 2021-08-22 18:32:15 -03:00 committed by Leah Neukirchen
parent 0040312985
commit 7e7df9565f
3 changed files with 30 additions and 10 deletions

1
srcpkgs/pari-seadata-small Symbolic link
View file

@ -0,0 +1 @@
pari-seadata

View file

@ -1,17 +1,33 @@
# Template file for 'pari-seadata'
pkgname=pari-seadata
version=20090618
revision=3
revision=4
create_wrksrc=yes
depends="pari"
short_desc="PARI/GP package needed by ellap for large primes up to 750 bit"
maintainer="André Cerqueira <acerqueira021@gmail.com>"
license="GPL-3.0-or-later"
homepage="http://pari.math.u-bordeaux.fr/packages.html"
distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/seadata.tgz"
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_install() {
vmkdir usr/share/pari/seadata
vcopy data/seadata/sea* usr/share/pari/seadata
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
}
}

View file

@ -0,0 +1,3 @@
site="http://pari.math.u-bordeaux.fr/pub/pari/packages/"
pattern="href=\"${pkgname#pari-}.t(ar|gz)\".*\K\d\d\d\d-\d\d-\d\d(?= \d\d:\d\d )"
version=${version:0:4}.${version:4:2}.${version:6:2}