[arch-commits] Commit in cysignals/repos (2 files)
Antonio Rojas
arojas at archlinux.org
Thu Jul 19 18:31:26 UTC 2018
Date: Thursday, July 19, 2018 @ 18:31:26
Author: arojas
Revision: 362440
archrelease: copy trunk to community-staging-x86_64
Added:
cysignals/repos/community-staging-x86_64/
cysignals/repos/community-staging-x86_64/PKGBUILD
(from rev 362439, cysignals/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: cysignals/repos/community-staging-x86_64/PKGBUILD (from rev 362439, cysignals/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-07-19 18:31:26 UTC (rev 362440)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgbase=cysignals
+pkgname=(python-cysignals python2-cysignals)
+pkgver=1.7.2
+pkgrel=4
+pkgdesc="Interrupt and signal handling for Cython"
+arch=(x86_64)
+url="https://www.sagemath.org"
+license=(LGPL)
+makedepends=(cython2 cython pari)
+source=("https://github.com/sagemath/cysignals/releases/download/$pkgver/$pkgbase-$pkgver.tar.gz")
+sha256sums=('db245c19248a869add480e50e5bd97d282176a74b8c6ca7a0072192e576afc67')
+
+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-cysignals() {
+ depends=(python pari)
+
+ cd $pkgbase-$pkgver
+ python setup.py install --root="$pkgdir"
+
+# Keep scripts in python2 package
+ rm -r "$pkgdir"/usr/{bin,share}
+}
+
+package_python2-cysignals() {
+ depends=(python2 pari)
+ conflicts=(cysignals)
+ provides=(cysignals)
+ replaces=(cysignals)
+
+ cd $pkgbase-$pkgver-py2
+ python2 setup.py install --root="$pkgdir"
+}
More information about the arch-commits
mailing list