diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -1,15 +1,15 @@ # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> pkgname=cython-git -pkgver=0.29.7.r371.g1a1087bd6 +pkgver=3.0.0a11.r191.g8fcc9896f pkgrel=1 pkgdesc="C-Extensions for Python" arch=('i686' 'x86_64') url="https://cython.org/" license=('apache') -depends=('python-setuptools') -makedepends=('git') -provides=('cython') +depends=('python') +makedepends=('git' 'python-build' 'python-installer' 'python-wheel') +provides=("cython=$pkgver") conflicts=('cython') source=("git+https://github.com/cython/cython.git") sha256sums=('SKIP') @@ -24,15 +24,19 @@ pkgver() { build() { cd "cython" - python "setup.py" build + python \ + -m build \ + --wheel \ + --no-isolation } package() { cd "cython" - python "setup.py" install \ - --optimize 1 \ - --root "$pkgdir" + python \ + -m installer \ + --destdir="$pkgdir" \ + dist/*.whl for f in cygdb cython cythonize; do mv "$pkgdir/usr/bin"/$f "$pkgdir/usr/bin"/${f}3 |