[arch-commits] Commit in brial/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Wed Jan 1 23:32:10 UTC 2020
Date: Wednesday, January 1, 2020 @ 23:32:09
Author: arojas
Revision: 545989
Drop python2
Modified:
brial/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-01 23:31:09 UTC (rev 545988)
+++ PKGBUILD 2020-01-01 23:32:09 UTC (rev 545989)
@@ -2,34 +2,26 @@
pkgname=brial
pkgver=1.2.6
-pkgrel=1
+pkgrel=2
pkgdesc="Library for polynomials over boolean rings"
arch=(x86_64)
url="https://github.com/BRiAl/BRiAl"
license=(GPL)
depends=(m4ri)
-makedepends=(boost python python2)
-optdepends=('python: Python 3 bindings' 'python2: Python 2 bindings')
+makedepends=(boost python)
+optdepends=('python: Python bindings')
source=("https://github.com/BRiAl/BRiAl/releases/download/$pkgver/brial-$pkgver.tar.bz2")
sha256sums=('a8185e7b17b90f20d4babdc9c65ae0d543100410ab05f6ba62704f1df4936d18')
-prepare() {
- cp -r $pkgname-$pkgver/sage-brial{,-py2}
-}
-
build() {
cd $pkgname-$pkgver
- export PYTHON=python2
./configure --prefix=/usr --enable-shared
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool # https://bugzilla.gnome.org/show_bug.cgi?id=655517
-
make
cd sage-brial
python setup.py build
- cd ../sage-brial-py2
- python2 setup.py build
}
package() {
@@ -39,6 +31,4 @@
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