0040312985
- fix license - change homepage and use https for downloads - rename distfiles to include version in name - compress files (installed-size: 80M -> 73M) - drop depends on pari so pari can checkdepends on this (cf #29159, #32614) - skip slow post-install hooks since pkg contains 14681 data files - split a small subset as pari-galpol-small (12M vs 73M) - add update file - change of maintainer agreed by motorto
38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# Template file for 'pari-galpol'
|
|
pkgname=pari-galpol
|
|
version=20180625
|
|
revision=2
|
|
create_wrksrc=yes
|
|
depends="pari-galpol-small"
|
|
short_desc="PARI/GP package of the GALPOL database of polynomials"
|
|
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=562af28316ee335ee38c1172c2d5ecccb79f55c368fb9f2c6f40fc0f416bb01b
|
|
# skip slow post-install hooks for 14681 files: saves ~ 3m in install
|
|
nostrip=yes # skip 06-strip-and-debug-pkgs
|
|
ignore_elf_dirs=/usr/share/pari # skip 11-pkglint-elf-in-usrshare
|
|
|
|
do_build() {
|
|
# compressed data files work ok (install-size: 80M -> 73M)
|
|
find data -type f -size +4k -print0 | xargs -0 gzip -9
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/share/pari
|
|
vcopy "data/*" usr/share/pari
|
|
}
|
|
|
|
pari-galpol-small_package() {
|
|
short_desc+=" - groups of order up to 64"
|
|
nostrip=yes
|
|
ignore_elf_dirs=/usr/share/pari
|
|
pkg_install() {
|
|
# a subset enough for testing (12M)
|
|
vmove "usr/share/pari/galpol/?"
|
|
vmove "usr/share/pari/galpol/[1-5]?"
|
|
vmove "usr/share/pari/galpol/6[0-4]"
|
|
vmove usr/share/pari/galpol/README
|
|
}
|
|
}
|