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

Antonio Rojas arojas at archlinux.org
Sun Mar 26 17:59:27 UTC 2017


    Date: Sunday, March 26, 2017 @ 17:59:26
  Author: arojas
Revision: 219154

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

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

-----------------------------------+
 community-staging-i686/PKGBUILD   |   47 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   47 ++++++++++++++++++++++++++++++++++++
 2 files changed, 94 insertions(+)

Copied: fpylll/repos/community-staging-i686/PKGBUILD (from rev 219153, fpylll/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-03-26 17:59:26 UTC (rev 219154)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgbase=fpylll
+pkgname=(python-fpylll python2-fpylll)
+pkgver=0.2.4dev
+pkgrel=1
+pkgdesc="A Python interface for fplll"
+arch=(i686 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=('703a5e167979f88a13505483847dabf59c16504f33c767661deb75b6b57576c0')
+
+prepare() {
+  cp -r $pkgbase-$pkgver{,-py2}
+
+# workaround encoding error
+  sed -e '/long_description/d' -i $pkgbase-$pkgver/setup.py
+}
+
+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
+}

Copied: fpylll/repos/community-staging-x86_64/PKGBUILD (from rev 219153, fpylll/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-03-26 17:59:26 UTC (rev 219154)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgbase=fpylll
+pkgname=(python-fpylll python2-fpylll)
+pkgver=0.2.4dev
+pkgrel=1
+pkgdesc="A Python interface for fplll"
+arch=(i686 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=('703a5e167979f88a13505483847dabf59c16504f33c767661deb75b6b57576c0')
+
+prepare() {
+  cp -r $pkgbase-$pkgver{,-py2}
+
+# workaround encoding error
+  sed -e '/long_description/d' -i $pkgbase-$pkgver/setup.py
+}
+
+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