Date: Tuesday, January 24, 2023 @ 21:21:32 Author: heftig Revision: 467299
1.6.1-1 Modified: python-evdev/trunk/PKGBUILD ----------+ PKGBUILD | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-24 21:18:47 UTC (rev 467298) +++ PKGBUILD 2023-01-24 21:21:32 UTC (rev 467299) @@ -1,7 +1,7 @@ # Maintainer: Jan Alexander Steffens (heftig) <[email protected]> pkgname=python-evdev -pkgver=1.6.0 +pkgver=1.6.1 pkgrel=1 pkgdesc="Python bindings for the Linux input subsystem" url="https://python-evdev.readthedocs.io/en/latest/" @@ -8,8 +8,8 @@ arch=(x86_64) license=(BSD) depends=(python) -makedepends=(git) -_commit=3cd7fbf222dbf3b4ca277d5138eabdb1819faa66 # tags/v1.6.0^0 +makedepends=(python-setuptools python-build python-installer python-wheel git) +_commit=2dd6ce6364bb67eedb209f6aa0bace0c18a3a40a # tags/v1.6.1^0 source=("git+https://github.com/gvalkov/python-evdev#commit=$_commit") sha256sums=('SKIP') @@ -18,13 +18,19 @@ git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g' } +prepare() { + cd $pkgname +} + build() { cd $pkgname - python setup.py build + python -m build --wheel --no-isolation } package() { cd $pkgname - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE } + +# vim:set sw=2 sts=-1 et:
