void-packages/srcpkgs/pari-elldata/template

33 lines
979 B
Bash

# Template file for 'pari-elldata'
pkgname=pari-elldata
version=20210301
revision=1
create_wrksrc=yes
depends="pari-elldata-small"
short_desc="PARI/GP version of J. E. Cremona Elliptic Curve Data"
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/*" 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
}
}