[arch-commits] Commit in gap/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Mon Oct 14 20:25:41 UTC 2019
Date: Monday, October 14, 2019 @ 20:25:40
Author: arojas
Revision: 515922
Fix xgap launcher
Modified:
gap/trunk/PKGBUILD
----------+
PKGBUILD | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-14 20:20:23 UTC (rev 515921)
+++ PKGBUILD 2019-10-14 20:25:40 UTC (rev 515922)
@@ -5,7 +5,7 @@
pkgbase=gap
pkgname=(gap gap-doc gap-packages)
pkgver=4.10.2
-pkgrel=3
+pkgrel=4
pkgdesc="Groups, Algorithms, Programming: a system for computational discrete algebra"
arch=(x86_64)
url="https://www.gap-system.org/"
@@ -99,9 +99,15 @@
pkgdesc="Extra packages for GAP"
cd gap-$pkgver
- mkdir -p "$pkgdir"/usr/lib/gap
+ mkdir -p "$pkgdir"/usr/{bin,lib/gap}
cp -r pkg "$pkgdir"/usr/lib/gap
+# fix xgap launch script
+ sed -e 's|/build/gap/src/gap-4.10.2|/usr/lib/gap|g' -e 's|^GAP=.*|GAP=/usr/lib/gap/gap|g' \
+ "$pkgdir"/usr/lib/gap/pkg/xgap-*/xgap.sh > "$pkgdir"/usr/bin/xgap
+ chmod 755 "$pkgdir"/usr/bin/xgap
+ rm "$pkgdir"/usr/lib/gap/pkg/xgap-*/xgap.sh*
+
# provided by main gap package
for _pkg in ${_standardpkgs[@]}; do
rm -r "$pkgdir"/usr/lib/gap/pkg/$_pkg
More information about the arch-commits
mailing list