diff options
author | Xyne | 2023-07-31 23:19:09 +0200 |
---|---|---|
committer | Xyne | 2023-07-31 23:19:09 +0200 |
commit | 2dc5fba83bfd435ccdd3ddd485724c6c538a7ecb (patch) | |
tree | c7c9bd0f16e85c76f82d97de0fb154b598b79903 /PKGBUILD | |
parent | 0cb1be701d5d55f3a070f588d78aa2b084758b7e (diff) | |
download | aur-python-setuptools-git-versioning-git.tar.gz |
Modernize packaging
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -1,8 +1,8 @@ # Maintainer: Xyne <xyne at archlinux dot org> _name=setuptools-git-versioning _pkgname=python-${_name,,} -pkgname=$_pkgname-git -pkgver=1.8.1.r4.g17315dd +pkgname="$_pkgname-git" +pkgver=1.13.4.r0.gba4f329 pkgrel=1 pkgdesc='Use Git repo data for building a version number according to PEP 440.' url='https://github.com/dolfinus/setuptools-git-versioning' @@ -10,9 +10,10 @@ arch=('any') license=('MIT') depends=('python' 'python-setuptools' 'python-six' 'python-toml') makedepends=('git') +makedepends=('git' 'python-build' 'python-wheel' 'python-installer') provides=("$_pkgname") conflicts=("$_pkgname") -source=(${_name}::git+https://github.com/dolfinus/${_name}) +source=("$_name::git+https://github.com/dolfinus/$_name.git") sha512sums=('SKIP') pkgver() { @@ -20,10 +21,14 @@ pkgver() { git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } -package () -{ - cd "$_name" - python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 +build() { + cd -- "$_name" + python -m build --wheel --no-isolation +} + +package() { + cd -- "$_name" + python -m installer --destdir="$pkgdir" dist/*.whl } -# vim: ts=2 sw=2 et: +# vim:set ts=2 sw=2 et: |