diff options
Diffstat (limited to 'community/py3-icu/APKBUILD')
-rw-r--r-- | community/py3-icu/APKBUILD | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/community/py3-icu/APKBUILD b/community/py3-icu/APKBUILD index 01a21a21ef2..383d020771f 100644 --- a/community/py3-icu/APKBUILD +++ b/community/py3-icu/APKBUILD @@ -1,13 +1,14 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=py3-icu _pyname=PyICU -pkgver=2.7.4 -pkgrel=0 +pkgver=2.12 +pkgrel=1 pkgdesc="Python3 binding for ICU" url="https://pypi.org/project/PyICU/" arch="all" license="MIT" -makedepends="py3-setuptools python3-dev icu-dev" +makedepends="py3-gpep517 py3-setuptools python3-dev icu-dev py3-wheel" +subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/P/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir"/$_pyname-$pkgver @@ -15,7 +16,9 @@ replaces="py-icu" # Backwards compatibility provides="py-icu=$pkgver-r$pkgrel" # Backwards compatibility build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { @@ -23,9 +26,10 @@ check() { } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } sha512sums=" -b1252f04c162525b607f28704629389a0765961eb3b8d8c7e67a141f9ecbe6d420cfdd043bc945134db8df550cd58316c08a3ac9c30192e04b0710ad2bc21c1d PyICU-2.7.4.tar.gz +75b799df40c43e0f607e3d90b07e0277dd2f37541b671bd24fdc81044facd2ad89ede991becc256d0761a7627afa3a70dd9e9681cef9eaa8e660f021450eb522 PyICU-2.12.tar.gz " |