From aa48ac5d825cb91d2b4c06a992fa52683a634eb8 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sun, 29 May 2022 14:43:58 +0000 Subject: [PATCH] community/gap to 4.11.1-9 --- community/gap/PKGBUILD | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/community/gap/PKGBUILD b/community/gap/PKGBUILD index 0529cd75a..3f25c9f04 100644 --- a/community/gap/PKGBUILD +++ b/community/gap/PKGBUILD @@ -8,7 +8,7 @@ pkgbase=gap pkgname=(gap gap-doc gap-packages) pkgver=4.11.1 -pkgrel=8 +pkgrel=9 pkgdesc='Groups, Algorithms, Programming: a system for computational discrete algebra' arch=(x86_64) url='https://www.gap-system.org/' @@ -99,6 +99,16 @@ package_gap() { mkdir -p "$pkgdir"/usr/share ln -s /usr/lib/gap -t "$pkgdir"/usr/share # expected by sagemath + +# Add provides for bundled packages + for _f in $(ls "$pkgdir"/usr/lib/gap/pkg); do + _pkg=$(basename $_f | cut -d- -f1 | tr '[:upper:]' '[:lower:]') + _prov=gap-$_pkg + if [[ $_f == *-* ]]; then + _prov+="=$(basename $_f | cut -d- -f2)" + fi + provides+=($_prov) + done } package_gap-doc() { @@ -148,4 +158,14 @@ package_gap-packages() { 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 + +# Add provides for bundled packages + for _f in $(ls "$pkgdir"/usr/lib/gap/pkg); do + _pkg=$(basename $_f | cut -d- -f1 | tr '[:upper:]' '[:lower:]') + _prov=gap-$_pkg + if [[ $_f == *-* ]]; then + _prov+="=$(basename $_f | cut -d- -f2)" + fi + provides+=($_prov) + done }