diff options
author | Ted Alff | 2024-05-07 23:51:34 -0400 |
---|---|---|
committer | Ted Alff | 2024-05-07 23:51:34 -0400 |
commit | d793218570ee3e5da2da0c88643ec44abd682bf5 (patch) | |
tree | 664eece96da6687e5119a0301798f864174ecfc6 | |
parent | 24382c402b152eee28d621fa4508c673afc7ec95 (diff) | |
download | aur-d793218570ee3e5da2da0c88643ec44abd682bf5.tar.gz |
Don't call setup.py directly.
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 8 insertions, 5 deletions
@@ -1,11 +1,14 @@ pkgbase = python-polib pkgdesc = A library to manipulate gettext files pkgver = 1.2.0 - pkgrel = 1 + pkgrel = 2 url = https://pypi.python.org/pypi/polib arch = any license = MIT makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel depends = python source = python-polib-1.2.0.tar.gz::https://pypi.io/packages/source/p/polib/polib-1.2.0.tar.gz sha256sums = f3ef94aefed6e183e342a8a269ae1fc4742ba193186ad76f175938621dbfc26b @@ -5,23 +5,23 @@ pkgbase=python-polib pkgname=('python-polib') _pkgname=polib pkgver=1.2.0 -pkgrel=1 +pkgrel=2 pkgdesc='A library to manipulate gettext files' url='https://pypi.python.org/pypi/polib' arch=('any') license=('MIT') depends=('python') -makedepends=('python-setuptools') +makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') source=("${pkgbase}-${pkgver}.tar.gz::https://pypi.io/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") sha256sums=('f3ef94aefed6e183e342a8a269ae1fc4742ba193186ad76f175938621dbfc26b') build() { cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py build + python -m build --wheel --no-isolation } package() { cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py install --root="${pkgdir}" --skip-build --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |