[arch-commits] Commit in fpylll/repos (2 files)

Antonio Rojas arojas at archlinux.org
Fri May 18 18:57:49 UTC 2018


    Date: Friday, May 18, 2018 @ 18:57:49
  Author: arojas
Revision: 324293

archrelease: copy trunk to community-staging-x86_64

Added:
  fpylll/repos/community-staging-x86_64/
  fpylll/repos/community-staging-x86_64/PKGBUILD
    (from rev 324292, fpylll/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: fpylll/repos/community-staging-x86_64/PKGBUILD (from rev 324292, fpylll/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-05-18 18:57:49 UTC (rev 324293)
@@ -0,0 +1,43 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgbase=fpylll
+pkgname=(python-fpylll python2-fpylll)
+pkgver=0.4.0dev
+pkgrel=1
+pkgdesc="A Python interface for fplll"
+arch=(x86_64)
+url="https://github.com/fplll/fpylll"
+license=(GPL2)
+makedepends=(fplll python-numpy python-cysignals cython python2-numpy python2-cysignals cython2)
+source=("https://github.com/fplll/fpylll/releases/download/$pkgver/$pkgbase-$pkgver.tar.gz")
+sha256sums=('d53c4718d84cf2631bbf54e5d9f0e4211978add3bee13f15cec4f27e693573ff')
+
+prepare() {
+  cp -r $pkgbase-$pkgver{,-py2}
+}
+
+build() {
+  cd $pkgbase-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/$pkgbase-$pkgver-py2
+  python2 setup.py build
+}
+
+package_python-fpylll() {
+  depends=(fplll python-numpy python-cysignals)
+
+  cd $pkgbase-$pkgver
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+}
+
+package_python2-fpylll() {
+  depends=(fplll python2-numpy python2-cysignals)
+  optdepends=('sagemath: use Sage integers implementation')  
+  conflicts=(fpylll)
+  provides=(fpylll)
+  replaces=(fpylll)
+
+  cd $pkgbase-$pkgver-py2 
+  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list