diff options
author | Antonio Rojas | 2019-01-05 10:26:22 +0000 |
---|---|---|
committer | Antonio Rojas | 2019-01-05 10:26:22 +0000 |
commit | dc212f28fc07c110b89f483f1c7daf6282b53dfa (patch) | |
tree | 42a373124c2c308afb45072449d53f07151e29c2 /PKGBUILD | |
download | aur-sagemath-p_group_cohomology.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e469511e3621 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Antonio Rojas <arojas@archlinux.org> + +pkgname=sagemath-p_group_cohomology +pkgver=3.1 +pkgrel=1 +pkgdesc="p-group cohomology package for Sagemath" +arch=(x86_64) +url="https://users.fmi.uni-jena.de/cohomology/" +license=(GPL) +depends=(sagemath shared_meataxe) +makedepends=(cython2) +source=(https://users.fmi.uni-jena.de/cohomology/p_group_cohomology-$pkgver.tar.xz) +sha256sums=('8b2d2cc3a139605779239b2dda2b7f0f060249091a0eadc9ff210f1ae1fabbd5') + +build() { + cd p_group_cohomology-$pkgver/csources + ./configure --prefix=/usr + make + # install to temp dir so we can build pyxsources + make DESTDIR="$PWD/../tmp" install + + cd ../pyxsources + export CFLAGS+=" -I$PWD/../tmp/usr/include" + export LDFLAGS+=" -L$PWD/../tmp/usr/lib" + python2 setup.py build +} + +package() { + cd p_group_cohomology-$pkgver/csources + make DESTDIR="$pkgdir" install + + cd ../pyxsources + python2 setup.py install --skip-build --root="$pkgdir" --optimize=1 + +# Fix file ownership + chown -R root:root "$pkgdir"/usr/share +} |