From 6e97e03fa85e4b09ea525c740943af943f04020c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 22 Aug 2021 13:02:49 -0300 Subject: [PATCH] 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 --- srcpkgs/pari-elldata-small | 1 + srcpkgs/pari-elldata/template | 33 ++++++++++++++++++++++++--------- srcpkgs/pari-elldata/update | 3 +++ 3 files changed, 28 insertions(+), 9 deletions(-) create mode 120000 srcpkgs/pari-elldata-small create mode 100644 srcpkgs/pari-elldata/update 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}