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

Antonio Rojas arojas at archlinux.org
Mon Oct 29 16:53:35 UTC 2018


    Date: Monday, October 29, 2018 @ 16:53:34
  Author: arojas
Revision: 399456

archrelease: copy trunk to community-staging-x86_64

Added:
  cypari2/repos/community-staging-x86_64/
  cypari2/repos/community-staging-x86_64/PKGBUILD
    (from rev 399455, cypari2/trunk/PKGBUILD)

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

Copied: cypari2/repos/community-staging-x86_64/PKGBUILD (from rev 399455, cypari2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-10-29 16:53:34 UTC (rev 399456)
@@ -0,0 +1,39 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgbase=cypari2
+pkgname=(python-cypari2 python2-cypari2)
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="Cython bindings for PARI"
+arch=(x86_64)
+url="https://www.sagemath.org"
+license=(LGPL)
+makedepends=(cython2 cython python2-cysignals python-cysignals)
+source=($pkgname-$pkgver.tar.gz::"https://github.com/defeo/cypari2/archive/$pkgver.tar.gz")
+sha256sums=('b320a85ea6cf7b7dc4e12d013218198573d080a3637d7814e4edfd33c9a40092')
+
+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-cypari2() {
+  depends=(python-cysignals)
+
+  cd $pkgbase-$pkgver
+  python setup.py install --root="$pkgdir"
+}
+
+package_python2-cypari2() {
+  depends=(python2-cysignals)
+
+  cd $pkgbase-$pkgver-py2   
+  python2 setup.py install --root="$pkgdir"
+}



More information about the arch-commits mailing list