* add cython0

This commit is contained in:
Alexander Baldeck 2023-07-26 16:09:31 +02:00
parent d3ef9aac8a
commit 7ae4d4a026

33
python/cython0/PKGBUILD Normal file
View File

@ -0,0 +1,33 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Igor Scabini <furester @ gmail.com>
pkgname=cython0
pkgver=0.29.36
pkgrel=1
pkgdesc='C-Extensions for Python (legacy version)'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://cython.org'
license=(APACHE)
depends=(python)
conflicts=(cython)
provides=(cython)
makedepends=(python-build python-installer python-setuptools python-wheel)
source=(https://github.com/cython/cython/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('bd8ee4208e1f2817914894eca8c4ca894f6c9a51803b0b815a9a3c03d01ab729')
build() {
cd cython-$pkgver
python -m build --wheel --no-isolation
}
package() {
cd cython-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
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
}