aboutsummaryrefslogtreecommitdiffstats
path: root/main/cython/APKBUILD
blob: 36c118f954a15c49cfee42a091111f936bb33943 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=cython
pkgver=0.29.22
pkgrel=2
pkgdesc="Cython is an optimising static compiler for both the Python & the extended Cython programming languages."
url="https://cython.org/"
arch="all"
license="Apache-2.0"
makedepends="py3-setuptools python3-dev"
depends="python3"
subpackages="cython-doc"
source="cython-$pkgver.tar.gz::https://github.com/cython/cython/archive/$pkgver.tar.gz"

# compatible fix for removing dev subpkg from apkbuild
# cython is not a library but a compiler and does not need a dev subpackage
provides=cython-dev

build() {
	python3 setup.py build
}

check() {
	python3 runtests.py -j${JOBS:-$(nproc)}
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/cython/license"
	install -Dm 644 README.rst "$pkgdir/usr/share/doc/cython/readme.rst"
}

sha512sums="b7f22112678f159bf1d0ad5fe4f7c103e96f240bab4d9dc07edd7c2f66a9887b9af72b32f1d5886361b48d428bc2b9499d3c5b59ce5af1068f20a26549783dd6  cython-0.29.22.tar.gz"