[arch-commits] Commit in cypari2/repos (2 files)
Antonio Rojas
arojas at archlinux.org
Thu Jul 19 17:24:51 UTC 2018
Date: Thursday, July 19, 2018 @ 17:24:50
Author: arojas
Revision: 362419
archrelease: copy trunk to community-staging-x86_64
Added:
cypari2/repos/community-staging-x86_64/
cypari2/repos/community-staging-x86_64/PKGBUILD
(from rev 362418, cypari2/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: cypari2/repos/community-staging-x86_64/PKGBUILD (from rev 362418, cypari2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-07-19 17:24:50 UTC (rev 362419)
@@ -0,0 +1,39 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgbase=cypari2
+pkgname=(python-cypari2 python2-cypari2)
+pkgver=1.2.1
+pkgrel=2
+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=('85697e61047c9b1e9132c846090d660b12511a1456a5add3c9f5dfb7568786fe')
+
+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