aboutsummaryrefslogtreecommitdiffstats
path: root/main/cython/APKBUILD
blob: 658a2f4a6fac0a07d1be1efe94cbb545fdbe2b96 (plain)
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.16
pkgrel=0
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"
options="!check" # several tests fail
makedepends="py3-setuptools python3-dev"
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() {
	make test
}

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="8f7a05ad86d557d774b2de5ec77fa9bc2600500555b607482899ade2b8abb2ebb60fc1b944f355b37663e30de09d53bcaa925f888b4128f4b0345a1cad9e2923  cython-0.29.16.tar.gz"