Christoph Reiter a0902f1e21 Use pypi PURLs instead of plain pypi names
This allows us to include a version and we already use PURL
for other things, so might as well remove the pypi special case.

Normalize the names, since that is required for PURLs.
2025-02-16 20:58:55 +01:00

45 lines
1.0 KiB
Bash

# Maintainer: Alexandre Ferreira < alex.jorge.m [at] gmail.com >
_realname=cython
pkgbase=${_realname}
pkgname=('cython')
pkgver=3.0.11
pkgrel=2
pkgdesc='C-Extensions for Python'
arch=('i686' 'x86_64')
url='https://cython.org/'
msys2_repository_url="https://github.com/cython/cython"
msys2_references=(
"purl: pkg:pypi/cython"
)
license=('spdx:Apache-2.0')
depends=('python')
conflicts=('cython0')
makedepends=(
'gcc'
'python-devel'
"python-setuptools"
"python-build"
"python-installer"
)
source=("${_realname}-${pkgver}.tar.gz"::"https://github.com/cython/cython/archive/${pkgver}.tar.gz")
sha256sums=('2ec7d66d23d6da2328fb24f5c1bec6c63a59ec2e91027766ab904f417e1078aa')
prepare() {
cd "${_realname}-${pkgver}"
}
build() {
cd "${_realname}-${pkgver}"
# XXX: this changes the build path, and thus the DLL base address
MSYSTEM=CYGWIN
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${_realname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}