blob: 7ca99ed299d7e9ca58d67f8415d17292e7769192 (
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
37
38
39
40
41
42
43
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-icu
_pkgname=PyICU
pkgver=1.9.8
pkgrel=1
pkgdesc="Python binding for ICU"
url="http://pyicu.osafoundation.org/"
arch="all"
license="MIT"
makedepends="python2-dev python3-dev icu-dev"
subpackages="py2-icu:_py py3-icu:_py"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
}
check() {
cd "$builddir"
python2 setup.py check
python3 setup.py check
}
package() {
cd "$builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
_py() {
local py=${subpkgname%%-*}
local python="python${py#py}"
depends="$python"
pkgdesc="$pkgdesc ($python)"
install_if="$pkgname=$pkgver-r$pkgrel $python"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/${python}* "$subpkgdir"/usr/lib/
}
sha512sums="87a539168ef89c0b77219e9373fb304e95088a5410c64f7939c382d840bc021af0edfffce89d3212cc9642c31cff7e508b7f70ee83466bc84793287a8661f4e1 PyICU-1.9.8.tar.gz"
|