[arch-commits] Commit in brial/repos/community-x86_64 (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sun Sep 1 21:47:21 UTC 2019
Date: Sunday, September 1, 2019 @ 21:47:20
Author: arojas
Revision: 506361
archrelease: copy trunk to community-x86_64
Added:
brial/repos/community-x86_64/PKGBUILD
(from rev 506360, brial/trunk/PKGBUILD)
Deleted:
brial/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 79 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 44 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-09-01 21:46:53 UTC (rev 506360)
+++ PKGBUILD 2019-09-01 21:47:20 UTC (rev 506361)
@@ -1,35 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-
-pkgname=brial
-pkgver=1.2.5
-pkgrel=2
-pkgdesc="Library for polynomials over boolean rings"
-arch=(x86_64)
-url="https://github.com/BRiAl/BRiAl"
-license=(GPL)
-depends=(python2 m4ri)
-makedepends=(boost)
-source=("https://github.com/BRiAl/BRiAl/releases/download/$pkgver/brial-$pkgver.tar.bz2")
-sha256sums=('c4921d5008ac9122452e6f93abb696ef21ceac8e7170008ea7c7b05508da8d34')
-
-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
- python2 setup.py build
-}
-
-package() {
- cd $pkgname-$pkgver
-
- make DESTDIR="$pkgdir" install
-
- cd sage-brial
- python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
-}
Copied: brial/repos/community-x86_64/PKGBUILD (from rev 506360, brial/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-09-01 21:47:20 UTC (rev 506361)
@@ -0,0 +1,44 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=brial
+pkgver=1.2.5
+pkgrel=3
+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')
+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
+
+ 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() {
+ cd $pkgname-$pkgver
+
+ 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