38 lines
925 B
Bash
38 lines
925 B
Bash
pkgname=cython
|
|
pkgver=3.1.7
|
|
pkgdesc='C-Extensions for Python'
|
|
arch=(x86_64)
|
|
homepage='https://cython.org'
|
|
license=(Apache-2.0)
|
|
depends=(glibc
|
|
python)
|
|
makedepends=(git
|
|
python-build
|
|
python-installer
|
|
python-setuptools
|
|
python-wheel)
|
|
sources=("${pkgname}-${pkgver}.tar.gz")
|
|
urls=("https://github.com/cython/cython/releases/download/${pkgver}/${sources[0]}")
|
|
md5sums=("08c1ee734e2cb43f3b1c4310dfde27c0")
|
|
|
|
src_prepare() {
|
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
|
}
|
|
|
|
src_build() {
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
# check need some depends
|
|
|
|
src_install() {
|
|
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
|
|
install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
}
|
|
|
|
# vim:ft=sh syn=sh et sw=2:
|