pari-elldata: update to 20210301.
Also: - fix license - change homepage and use https for downloads - rename distfiles to include version in name - compress files (installed-size: 157M -> 57M) - drop depends on pari so pari can checkdepends on this (cf #29159, #32614) - split a reasonable small subset as pari-elldata-small (1.8M vs 57M) - add update file - change of maintainer agreed by motorto
This commit is contained in:
parent
4e498d1d7d
commit
6e97e03fa8
3 changed files with 28 additions and 9 deletions
1
srcpkgs/pari-elldata-small
Symbolic link
1
srcpkgs/pari-elldata-small
Symbolic link
|
@ -0,0 +1 @@
|
|||
pari-elldata
|
|
@ -1,17 +1,32 @@
|
|||
# Template file for 'pari-elldata'
|
||||
pkgname=pari-elldata
|
||||
version=20190912
|
||||
version=20210301
|
||||
revision=1
|
||||
create_wrksrc=yes
|
||||
depends="pari"
|
||||
depends="pari-elldata-small"
|
||||
short_desc="PARI/GP version of J. E. Cremona Elliptic Curve Data"
|
||||
maintainer="André Cerqueira <acerqueira021@gmail.com>"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="http://pari.math.u-bordeaux.fr/"
|
||||
distfiles="http://pari.math.u-bordeaux.fr/pub/pari/packages/elldata.tgz"
|
||||
checksum=c5757bbeba779fbf4c69718bccbe039fd98159bf2c8d13017284cf8b5a10ddc4
|
||||
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=dd551e64932d4ab27b3f2b2d1da871c2353672fc1a74705c52e3c0de84bd0cf6
|
||||
|
||||
do_build() {
|
||||
# compressed data files work ok (install-size: 156M -> 57M)
|
||||
find data -type f -size +4k -print0 | xargs -0 gzip -9
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vmkdir usr/share/pari
|
||||
vcopy data/elldata usr/share/pari
|
||||
vmkdir usr/share/pari
|
||||
vcopy "data/*" usr/share/pari
|
||||
}
|
||||
|
||||
pari-elldata-small_package() {
|
||||
short_desc+=" - conductors up to 20000"
|
||||
pkg_install() {
|
||||
# a reasonable small subset (1.8M)
|
||||
vmove "usr/share/pari/elldata/ell?.gz"
|
||||
vmove "usr/share/pari/elldata/ell1?.gz"
|
||||
vmove usr/share/pari/elldata/README
|
||||
}
|
||||
}
|
||||
|
|
3
srcpkgs/pari-elldata/update
Normal file
3
srcpkgs/pari-elldata/update
Normal 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}
|
Loading…
Reference in a new issue