[arch-commits] Commit in cython/repos/community-x86_64 (PKGBUILD PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Sun Dec 5 21:26:04 UTC 2021
Date: Sunday, December 5, 2021 @ 21:26:04
Author: arojas
Revision: 1065204
archrelease: copy trunk to community-x86_64
Added:
cython/repos/community-x86_64/PKGBUILD
(from rev 1065203, cython/trunk/PKGBUILD)
Deleted:
cython/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 107 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 51 insertions(+), 56 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-05 21:25:57 UTC (rev 1065203)
+++ PKGBUILD 2021-12-05 21:26:04 UTC (rev 1065204)
@@ -1,56 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Igor Scabini <furester @ gmail.com>
-
-pkgname=(cython cython2)
-pkgbase=cython
-pkgver=0.29.24
-pkgrel=1
-pkgdesc='C-Extensions for Python'
-arch=(x86_64)
-url='https://cython.org'
-license=(APACHE)
-makedepends=(python-setuptools python2-setuptools)
-source=(https://github.com/cython/cython/archive/$pkgver/$pkgbase-$pkgver.tar.gz
- cython-hash-int-conversion.patch::"https://github.com/cython/cython/commit/28251032.patch")
-sha256sums=('a5efb97612f0f97164e87c54cc295b2e2d06c539487670079963adeab872de80'
- '28b2b065a9853e86d0bc09287e8a21f50ebc1f3cfee3b2ab03b6b917cb9e81d8')
-
-prepare() {
- cp -r cython-$pkgver cython2-$pkgver
- find cython2-$pkgver -name '*.py' | xargs sed -e 's|/usr/bin/env python|/usr/bin/env python2|' -e 's|/usr/bin/python|/usr/bin/python2|' -i
-
- cd cython-$pkgver
- patch -p1 -i ../cython-hash-int-conversion.patch # Allow non-int conversion to Py_hash_t, needed by sagemath
-}
-
-build() {
- cd cython-$pkgver
- python setup.py build
-
- cd ../cython2-$pkgver
- python2 setup.py build
-}
-
-package_cython() {
- depends=(python)
-
- cd cython-$pkgver
- python setup.py install --root="$pkgdir" --skip-build
-
- for f in cygdb cython cythonize; do
- mv "$pkgdir"/usr/bin/$f "$pkgdir"/usr/bin/${f}3
- ln -s ${f}3 "$pkgdir"/usr/bin/$f
- done
-}
-
-package_cython2() {
- depends=(python2)
-
- cd cython2-$pkgver
- python2 setup.py install --root="$pkgdir" --skip-build
-
- for f in cygdb cython cythonize; do
- mv "$pkgdir"/usr/bin/$f "$pkgdir"/usr/bin/${f}2
- done
-}
Copied: cython/repos/community-x86_64/PKGBUILD (from rev 1065203, cython/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-05 21:26:04 UTC (rev 1065204)
@@ -0,0 +1,51 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Igor Scabini <furester @ gmail.com>
+
+pkgname=(cython cython2)
+pkgbase=cython
+pkgver=0.29.25
+pkgrel=1
+pkgdesc='C-Extensions for Python'
+arch=(x86_64)
+url='https://cython.org'
+license=(APACHE)
+makedepends=(python-setuptools python2-setuptools)
+source=(https://github.com/cython/cython/archive/$pkgver/$pkgbase-$pkgver.tar.gz)
+sha256sums=('dcee4374bff7a0fbd6802dacaf77b2edb1c1324380f11b8646acae9f9efa4fcc')
+
+prepare() {
+ cp -r cython-$pkgver cython2-$pkgver
+ find cython2-$pkgver -name '*.py' | xargs sed -e 's|/usr/bin/env python|/usr/bin/env python2|' -e 's|/usr/bin/python|/usr/bin/python2|' -i
+}
+
+build() {
+ cd cython-$pkgver
+ python setup.py build
+
+ cd ../cython2-$pkgver
+ python2 setup.py build
+}
+
+package_cython() {
+ depends=(python)
+
+ cd cython-$pkgver
+ python setup.py install --root="$pkgdir" --skip-build
+
+ for f in cygdb cython cythonize; do
+ mv "$pkgdir"/usr/bin/$f "$pkgdir"/usr/bin/${f}3
+ ln -s ${f}3 "$pkgdir"/usr/bin/$f
+ done
+}
+
+package_cython2() {
+ depends=(python2)
+
+ cd cython2-$pkgver
+ python2 setup.py install --root="$pkgdir" --skip-build
+
+ for f in cygdb cython cythonize; do
+ mv "$pkgdir"/usr/bin/$f "$pkgdir"/usr/bin/${f}2
+ done
+}
More information about the arch-commits
mailing list