mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
community/gap to 4.12.0-5
This commit is contained in:
parent
c24e4977e0
commit
4326efa3f5
1 changed files with 20 additions and 22 deletions
|
@ -7,24 +7,30 @@
|
|||
# - strip -m32 flags
|
||||
|
||||
pkgbase=gap
|
||||
pkgname=(gap gap-doc gap-packages)
|
||||
pkgname=(gap gap-packages)
|
||||
pkgver=4.12.0
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc='Groups, Algorithms, Programming: a system for computational discrete algebra'
|
||||
arch=(x86_64)
|
||||
url='https://www.gap-system.org/'
|
||||
license=(GPL)
|
||||
source=(https://github.com/gap-system/gap/releases/download/v$pkgver/$pkgbase-$pkgver.tar.gz
|
||||
https://github.com/gap-system/gap/commit/dce6fa96.patch)
|
||||
https://github.com/gap-system/gap/releases/download/v$pkgver/package-infos.json.gz
|
||||
https://github.com/gap-system/gap/commit/dce6fa96.patch
|
||||
https://github.com/gap-system/gap/commit/c57a07a3.patch)
|
||||
sha256sums=('6005d0c0316fe8803d84681f30be64eace83a9542f975f5cb3dedfadd4391849'
|
||||
'd8a362a6c1d27f2925d8b3f8eddc9aaafac1699fb568a035768d039b34ba6eb3')
|
||||
makedepends=(libxaw givaro mpfi cddlib boost libsemigroups c-xsc zeromq fplll wget chrpath fmt eigen normaliz)
|
||||
'abca41d8ec8341d39df99291136c465217fb14f9029cbbdd6378bc37499eac7c'
|
||||
'd8a362a6c1d27f2925d8b3f8eddc9aaafac1699fb568a035768d039b34ba6eb3'
|
||||
'6a66c31eada7a0da5f6c716a8f7ea90dceb2d41c8ad97af2e7d5b1415dbe210a')
|
||||
makedepends=(libxaw givaro mpfi cddlib boost libsemigroups c-xsc zeromq fplll wget chrpath fmt eigen normaliz jq)
|
||||
|
||||
prepare() {
|
||||
cd gap-$pkgver
|
||||
|
||||
# Fix including headers when no garbage collector is specified
|
||||
patch -p1 < ../dce6fa96.patch
|
||||
# Fix make install trying to install non-existant docs
|
||||
patch -p1 < ../c57a07a3.patch
|
||||
# Use system libsemigroups
|
||||
sed -e 's|test "$with_external_libsemigroups" = yes|true|' -i pkg/semigroups/configure
|
||||
# Use system normaliz
|
||||
|
@ -61,33 +67,26 @@ _standardpkgs=(gapdoc primgrp smallgrp transgrp atlasrep autpgrp alnuth crisp ct
|
|||
|
||||
package_gap() {
|
||||
depends=(gmp zlib)
|
||||
optdepends=('gap-packages: extra packages' 'gap-doc: documentation')
|
||||
optdepends=('gap-packages: extra packages')
|
||||
conflicts=(gap-doc)
|
||||
provides=(gap-doc)
|
||||
replaces=(gap-doc)
|
||||
cd gap-$pkgver
|
||||
|
||||
make DESTDIR="$pkgdir" install-bin install-gaproot install-sysinfo install-headers install-libgap
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
for _pkg in ${_standardpkgs[@]}; do
|
||||
cp -r pkg/$_pkg "$pkgdir"/usr/share/gap/pkg
|
||||
done
|
||||
|
||||
# Add provides for bundled packages
|
||||
for _f in "$pkgdir"/usr/share/gap/pkg/*/PackageInfo.g; do
|
||||
_pkg=$(cat $_f | sed -ze 's|:=\n|:=|g' | grep PackageName | tr '\n' ' ' | cut -d '"' -f2 | tr '[:upper:]' '[:lower:]')
|
||||
_ver=$(cat $_f | sed -ze 's|:=\n|:=|g' | grep Version | tr '\n' ' ' | cut -d '"' -f2)
|
||||
for _pkg in $(ls "$pkgdir"/usr/share/gap/pkg); do
|
||||
_ver=$(jq .[\"${_pkg}\"].Version "$srcdir"/package-infos.json | sed -e 's/"//g')
|
||||
_prov="gap-$_pkg=${_ver/-/.}"
|
||||
provides+=($_prov)
|
||||
done
|
||||
}
|
||||
|
||||
package_gap-doc() {
|
||||
depends=(gap)
|
||||
pkgdesc="Documentation for GAP"
|
||||
cd gap-$pkgver
|
||||
|
||||
mkdir -p "$pkgdir"/usr/lib/gap
|
||||
cp -r doc "$pkgdir"/usr/lib/gap
|
||||
}
|
||||
|
||||
package_gap-packages() {
|
||||
depends=(gap)
|
||||
optdepends=('libxaw: xgap package' 'c-xsc: float package' 'mpfi: float package'
|
||||
|
@ -128,9 +127,8 @@ package_gap-packages() {
|
|||
rm -r "$pkgdir"/usr/lib/gap/pkg/log
|
||||
|
||||
# Add provides for bundled packages
|
||||
for _f in "$pkgdir"/usr/lib/gap/pkg/*/PackageInfo.g; do
|
||||
_pkg=$(cat $_f | sed -ze 's|:=\n|:=|g' | grep PackageName | tr '\n' ' ' | cut -d '"' -f2 | tr '[:upper:]' '[:lower:]')
|
||||
_ver=$(cat $_f | sed -ze 's|:=\n|:=|g' | grep Version | tr '\n' ' ' | cut -d '"' -f2)
|
||||
for _pkg in $(ls "$pkgdir"/usr/lib/gap/pkg); do
|
||||
_ver=$(jq .[\"${_pkg}\"].Version "$srcdir"/package-infos.json | sed -e 's/"//g')
|
||||
_prov="gap-$_pkg=${_ver/-/.}"
|
||||
provides+=($_prov)
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue