From 4d34bf053ded9f4b6d84d05011b2e88a283d2d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 22 Aug 2021 18:10:27 -0300 Subject: [PATCH] pari-galdata: several improvements - fix license - change homepage - rename distfiles to include version in name - drop depends on pari so pari can checkdepends on this (cf #29159, #32614) - add update file - change of maintainer agreed by motorto --- srcpkgs/pari-galdata/template | 17 ++++++++--------- srcpkgs/pari-galdata/update | 5 +++++ 2 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 srcpkgs/pari-galdata/update diff --git a/srcpkgs/pari-galdata/template b/srcpkgs/pari-galdata/template index 63d930104b..fc76df875e 100644 --- a/srcpkgs/pari-galdata/template +++ b/srcpkgs/pari-galdata/template @@ -1,17 +1,16 @@ # Template file for 'pari-galdata' pkgname=pari-galdata version=20080411 -revision=1 +revision=2 create_wrksrc=yes -depends="pari" -short_desc="PARI database needed to compute Galois group in degrees 8 through 11" -maintainer="André Cerqueira " -license="GPL-3.0-or-later" -homepage="https://pari.math.u-bordeaux.fr/" -distfiles="https://pari.math.u-bordeaux.fr/pub/pari/packages/galdata.tgz" +short_desc="PARI/GP database needed to compute Galois group in degrees 8 through 11" +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=b7c1650099b24a20bdade47a85a928351c586287f0d4c73933313873e63290dd do_install() { - vmkdir usr/share/pari/galdata - vcopy data/galdata usr/share/pari + vmkdir usr/share/pari + vcopy "data/*" usr/share/pari } diff --git a/srcpkgs/pari-galdata/update b/srcpkgs/pari-galdata/update new file mode 100644 index 0000000000..c34e5c8bc8 --- /dev/null +++ b/srcpkgs/pari-galdata/update @@ -0,0 +1,5 @@ +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} +# the current version 20080411 is reported as 2008-04-12 by website +ignore=2008-04-12