diff options
author | Johannes Wienke | 2023-08-13 22:55:24 +0200 |
---|---|---|
committer | Johannes Wienke | 2023-08-13 22:55:24 +0200 |
commit | eeb053f9d7d0aaee77505ea75c2d6e15600392db (patch) | |
tree | 0f494ec950d4c1b9b6e1c65cd3557f9930a3d1bc | |
parent | be70e32ae04b4db8f881ca287608655b60c63a0f (diff) | |
download | aur-eeb053f9d7d0aaee77505ea75c2d6e15600392db.tar.gz |
Use modern packaging
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = autosuspend pkgdesc = A daemon to suspend and wake up a system based on configurable checks pkgver = 4.3.3 - pkgrel = 1 + pkgrel = 2 url = https://github.com/languitar/autosuspend install = autosuspend.install arch = any @@ -2,7 +2,7 @@ pkgname=autosuspend pkgver=4.3.3 -pkgrel=1 +pkgrel=2 pkgdesc="A daemon to suspend and wake up a system based on configurable checks" arch=(any) url="https://github.com/languitar/autosuspend" @@ -36,6 +36,7 @@ backup=('etc/autosuspend.conf' build() { cd "$pkgname-${pkgver}" + python -m build --wheel --no-isolation export PYTHONPATH=$(pwd)/src sphinx-build -a -b html doc/source/ doc/build/html sphinx-build -a -b man doc/source/ doc/build/man @@ -43,7 +44,7 @@ build() { package() { cd "$pkgname-${pkgver}" - python3 setup.py install --root="$pkgdir/" --install-data=/usr + python -m installer --destdir="$pkgdir" dist/*.whl # setuptools install_data is a nightmare, and cannot be made to respect the # filesystem hierarchy. Do things manually instead. mv "$pkgdir/usr/etc" "$pkgdir" |