[arch-commits] Commit in brial/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sun Sep 1 21:46:53 UTC 2019
Date: Sunday, September 1, 2019 @ 21:46:53
Author: arojas
Revision: 506360
Build python 3 module
Modified:
brial/trunk/PKGBUILD
----------+
PKGBUILD | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-09-01 21:43:01 UTC (rev 506359)
+++ PKGBUILD 2019-09-01 21:46:53 UTC (rev 506360)
@@ -2,16 +2,21 @@
pkgname=brial
pkgver=1.2.5
-pkgrel=2
+pkgrel=3
pkgdesc="Library for polynomials over boolean rings"
arch=(x86_64)
url="https://github.com/BRiAl/BRiAl"
license=(GPL)
-depends=(python2 m4ri)
-makedepends=(boost)
+depends=(m4ri)
+makedepends=(boost python python2)
+optdepends=('python: Python 3 bindings' 'python2: Python 2 bindings')
source=("https://github.com/BRiAl/BRiAl/releases/download/$pkgver/brial-$pkgver.tar.bz2")
sha256sums=('c4921d5008ac9122452e6f93abb696ef21ceac8e7170008ea7c7b05508da8d34')
+prepare() {
+ cp -r $pkgname-$pkgver/sage-brial{,-py2}
+}
+
build() {
cd $pkgname-$pkgver
@@ -22,6 +27,8 @@
make
cd sage-brial
+ python setup.py build
+ cd ../sage-brial-py2
python2 setup.py build
}
@@ -31,5 +38,7 @@
make DESTDIR="$pkgdir" install
cd sage-brial
+ python setup.py install --skip-build --root="$pkgdir" --optimize=1
+ cd ../sage-brial-py2
python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
}
More information about the arch-commits
mailing list