diff --git a/srcpkgs/pari-elldata-small b/srcpkgs/pari-elldata-small new file mode 120000 index 00000000000..b202971d614 --- /dev/null +++ b/srcpkgs/pari-elldata-small @@ -0,0 +1 @@ +pari-elldata \ No newline at end of file diff --git a/srcpkgs/pari-elldata/template b/srcpkgs/pari-elldata/template index 8bbe310b1e3..12e0d21dc7e 100644 --- a/srcpkgs/pari-elldata/template +++ b/srcpkgs/pari-elldata/template @@ -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 " -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 " +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 + } } diff --git a/srcpkgs/pari-elldata/update b/srcpkgs/pari-elldata/update new file mode 100644 index 00000000000..bea0b3258ee --- /dev/null +++ b/srcpkgs/pari-elldata/update @@ -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}