diff options
author | groctel | 2023-11-26 11:03:34 +0100 |
---|---|---|
committer | groctel | 2023-11-26 11:03:34 +0100 |
commit | 83bf95f35b7a17946c24ebf79a9a459ba6b859a6 (patch) | |
tree | 028d9e1534395fca99e333efef9ed9c74155e0cc | |
parent | 814fdb7c700b9840f3628abf8a6bfd90deda3a86 (diff) | |
download | aur-83bf95f35b7a17946c24ebf79a9a459ba6b859a6.tar.gz |
Updated installation method to follow PEP 517
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 16 insertions, 12 deletions
@@ -5,6 +5,8 @@ pkgbase = python-backports.cached_property url = https://github.com/penguinolog/backports.cached_property arch = any license = MIT + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools makedepends = python-setuptools-scm makedepends = python-wheel @@ -7,30 +7,32 @@ pkgver=1.0.2 pkgrel=1 pkgdesc="Python 3.8 functools.cached_property backport to python 3.6." -arch=('any') -license=('MIT') +arch=("any") +license=("MIT") url="https://github.com/penguinolog/backports.cached_property" source=("$url/archive/refs/tags/$pkgver.tar.gz") sha512sums=('393272e93f97783d575268e19005d3295570dfc562afe179b6d4ac56960b57b71454639f3588a1dcd531e0871fc7b6fa91bbd854ad4f1c16875f1d6d75cb0aa2') -depends=('python') +depends=("python") makedepends=( - 'python-setuptools' - 'python-setuptools-scm' - 'python-wheel' + "python-build" + "python-installer" + "python-setuptools" + "python-setuptools-scm" + "python-wheel" ) build () { - export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} - cd "$srcdir/$_name-$pkgver" - python setup.py build + cd "$srcdir/$_name-$pkgver" || exit + SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} \ + python -m build --wheel --no-isolation } package () { - cd "$srcdir/$_name-$pkgver" - python setup.py install --root="$pkgdir/" --optimize=1 --skip-build - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "$srcdir/$_name-$pkgver" || exit + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |