community/gap to 4.11.1-6

This commit is contained in:
David Beauchamp 2021-12-24 11:47:49 -05:00
parent 4b2cf7c86d
commit 68cbd35dcb

View file

@ -8,7 +8,7 @@
pkgbase=gap
pkgname=(gap gap-doc gap-packages)
pkgver=4.11.1
pkgrel=5
pkgrel=6
pkgdesc='Groups, Algorithms, Programming: a system for computational discrete algebra'
arch=(x86_64)
url='https://www.gap-system.org/'
@ -19,7 +19,7 @@ source=(https://github.com/gap-system/gap/releases/download/v$pkgver/$pkgbase-$p
sha256sums=('6635c5da7d82755f8339486b9cac33766f58712f297e8234fba40818902ea304'
'143fb8a79a52c007903cce13407850df309ef803a9b00398d05169355917de46'
'SKIP')
makedepends=(libxaw givaro mpfi cddlib boost libsemigroups c-xsc zeromq fplll wget chrpath fmt git)
makedepends=(libxaw givaro mpfi cddlib boost libsemigroups c-xsc zeromq fplll wget chrpath fmt eigen git)
# TODO: unbundle normaliz
prepare() {
@ -63,6 +63,7 @@ build() {
cd pkg
export CFLAGS+=" -fcommon" # Fix anupq and cohomolo build with GCC 10
export CXXFLAGS+=" -I/usr/include/cxsc" # Find c-xsc headers
export CXXFLAGS+=" -I/usr/include/eigen3" # Fix build of semigroups
export LDFLAGS+=" -L$srcdir/gap-$pkgver/tmp-install -lgap" # See https://trac.sagemath.org/ticket/27372
export LD_LIBRARY_PATH="$srcdir"/gap-$pkgver/tmp-install
../bin/BuildPackages.sh
@ -142,5 +143,7 @@ package_gap-packages() {
find "$pkgdir"/usr/lib/gap/pkg -type d -name src | xargs rm -fr
rm -r "$pkgdir"/usr/lib/gap/pkg/digraphs*/extern
rm -r "$pkgdir"/usr/lib/gap/pkg/semigroups*/libsemigroups
rm -r "$pkgdir"/usr/lib/gap/pkg/CaratInterface/carat*
rm -r "$pkgdir"/usr/lib/gap/pkg/kbmag-1.5.9/standalone
rm -r "$pkgdir"/usr/lib/gap/pkg/log
}