mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
community/gap to 4.11.1-9
This commit is contained in:
parent
9c5b51b25e
commit
aa48ac5d82
1 changed files with 21 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue