blob: 0c7b98701b6fbf1e45d1054816a967f15a790884 (
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
36
|
# Maintainer: Danilo J. S. Bellini <danilo dot bellini at gmail dot com>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Igor Scabini <furester @ gmail.com>
pkgname=cython2
_name="${pkgname%2}"
pkgver=0.29.37
pkgrel=1
pkgdesc='C-Extensions for Python 2'
arch=('x86_64')
url='https://cython.org'
_github='https://github.com/cython/cython'
license=('APACHE')
makedepends=('python2-setuptools')
depends=('python2')
source=("$pkgname-$pkgver.tar.gz::$_github/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('824eb14045d85c5af677536134199dd6709db8fb0835452fd2d54bc3c8df8887')
prepare() {
cd "$srcdir/$_name-$pkgver"
# Update shebangs in scripts to call "python2" instead of "python"
find -name "*.py*" -exec sed -i '1s/python\s*$/python2/' '{}' \;
}
build() {
cd "$srcdir/$_name-$pkgver"
python2 setup.py build
}
package() {
cd "$srcdir/$_name-$pkgver"
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
find "$pkgdir/usr/bin" -type f -not -name '*2' -exec mv '{}'{,2} \;
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}
|