summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bd909591f8720ae6877f3814ebde23e462ffa7c3 (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
# Maintainer: insmtr <insmtr@insmtr.cn>

pkgname=python-cython
pkgver=dev
pkgrel=1
pkgdesc='The most widely used Python to C compiler'
arch=('any')
url='https://github.com/cython/cython'
license=('Apache-2.0')
depends=('python' 'python-setuptools')
makedepends=('python-setuptools')

source=("$pkgname::git+https://github.com/cython/cython")
sha256sums=('SKIP')

pkgver() {
    cd "$pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$pkgname"
    python setup.py build
}

package() {
    cd "$pkgname"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}