void-packages/srcpkgs/gap/template

48 lines
1.3 KiB
Bash

# Template file for 'gap'
pkgname=gap
version=4.11.1
revision=1
build_style=gnu-configure
make_install_target="install-bin install-gaproot install-headers install-libgap"
makedepends="gmp-devel zlib-devel readline-devel"
checkdepends="perl"
short_desc="Groups, Algorithms, Programming - computational discrete algebra"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="GPL-2.0-or-later"
homepage="http://www.gap-system.org/"
distfiles="https://github.com/gap-system/gap/releases/download/v${version}/gap-${version}.tar.gz"
checksum=6635c5da7d82755f8339486b9cac33766f58712f297e8234fba40818902ea304
if [ "$XBPS_CHECK_PKGS" = full ]; then
# not sure about this -- takes about 25 minutes
make_check_target=teststandard
fi
_GAPROOT=/usr/share/gap/
# minimal required packages
_GAPPKGS="GAPDoc primgrp SmallGrp transgrp"
# other expected packages
_GAPPKGS+=" atlasrep autpgrp alnuth crisp ctbllib FactInt fga irredsol laguna
polenta polycyclic resclasses sophus tomlib"
post_install() {
vmkdir ${_GAPROOT}/pkg
for p in ${_GAPPKGS}; do
[ -d pkg/$p ] || p="$p-*"
vcopy "pkg/$p" ${_GAPROOT}/pkg
done
# not handled by make install-headers
vcopy gen/config.h /usr/include/gap
}
gap-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}