Date: Saturday, October 26, 2019 @ 04:15:07
  Author: foutrelis
Revision: 519950

archrelease: copy trunk to community-staging-x86_64

Added:
  cysignals/repos/community-staging-x86_64/
  cysignals/repos/community-staging-x86_64/PKGBUILD
    (from rev 519948, cysignals/trunk/PKGBUILD)

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

Copied: cysignals/repos/community-staging-x86_64/PKGBUILD (from rev 519948, 
cysignals/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-10-26 04:15:07 UTC (rev 519950)
@@ -0,0 +1,45 @@
+# Maintainer: Antonio Rojas <aro...@archlinux.org>
+
+pkgbase=cysignals
+pkgname=(python-cysignals python2-cysignals)
+pkgver=1.10.2
+pkgrel=2
+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=('8107b67a0c5991f74b0e000c6fa9fe8efcb2a22c7ede5b017aac4c3e20fb7db2')
+
+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"
+}

Reply via email to