39 lines
1.2 KiB
Bash
39 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
|
|
}
|
|
}
|