45 lines
1014 B
Bash
45 lines
1014 B
Bash
# Maintainer: Alexandre Ferreira < alex.jorge.m [at] gmail.com >
|
|
|
|
_realname=cython
|
|
pkgbase=${_realname}
|
|
pkgname=('cython')
|
|
pkgver=3.0.10
|
|
pkgrel=5
|
|
pkgdesc='C-Extensions for Python'
|
|
arch=('i686' 'x86_64')
|
|
url='https://cython.org/'
|
|
msys2_repository_url="https://github.com/cython/cython"
|
|
msys2_references=(
|
|
"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=('00f97476cef9fcd9a89f9d2a49be3b518e1a74b91f377fe08c97fcb44bc0f7d7')
|
|
|
|
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
|
|
}
|