diff --git a/srcpkgs/pari-nflistdata/template b/srcpkgs/pari-nflistdata/template new file mode 100644 index 00000000000000..c6e66f228b9810 --- /dev/null +++ b/srcpkgs/pari-nflistdata/template @@ -0,0 +1,21 @@ +# Template file for 'pari-nflistdata' +pkgname=pari-nflistdata +version=20210527 +revision=1 +create_wrksrc=yes +short_desc="PARI/GP database needed by nflist" +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=a123b2a6776a6579108254f5dbe9fd720ddbc7e46456b45e90a69e92a73b0597 + +do_build() { + # compressed data files work ok (install-size: 4.1M -> 2.9M) + find data -type f -size +4k -print0 | xargs -0 gzip -9 +} + +do_install() { + vmkdir usr/share/pari + vcopy "data/*" usr/share/pari +} diff --git a/srcpkgs/pari-nflistdata/update b/srcpkgs/pari-nflistdata/update new file mode 100644 index 00000000000000..bea0b3258ee537 --- /dev/null +++ b/srcpkgs/pari-nflistdata/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}