Skip to content
Snippets Groups Projects
Commit a1a20ab0 authored by Leo's avatar Leo Committed by Natanael Copa
Browse files

main/py3-icu: drop py2

parent fdf90963
No related branches found
No related tags found
No related merge requests found
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-icu
pkgname=py3-icu
_pkgname=PyICU
pkgver=2.3.1
pkgrel=0
pkgdesc="Python binding for ICU"
pkgrel=1
pkgdesc="Python3 binding for ICU"
url="https://pypi.org/project/PyICU/"
arch="all"
license="MIT"
makedepends="python2-dev python3-dev icu-dev"
depends="icu"
subpackages="py2-icu:_py py3-icu:_py"
makedepends="py3-setuptools python3-dev icu-dev"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-icu" # Backwards compatibility
provides="py-icu=$pkgver-r$pkgrel" # Backwards compatibility
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 $depends"
pkgdesc="$pkgdesc ($python)"
install_if="$pkgname=$pkgver-r$pkgrel $python"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/${python}* "$subpkgdir"/usr/lib/
}
sha512sums="edb60320ffe649f257d4d691ad9cc8287a7611de6a970d33a25a6e12a14c1faa591023d99d0b10619b0860bba70d1b67af2eff5cf146381afcaa872f0af1be29 PyICU-2.3.1.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment