diff options
author | Richard Neumann | 2023-05-04 11:09:17 +0200 |
---|---|---|
committer | Richard Neumann | 2023-05-04 11:09:17 +0200 |
commit | 73a4e44868b2e9a375ae0ff0354b60a1f1064f80 (patch) | |
tree | eb07c6b48e1c69596836a950749670ff523a87f1 /PKGBUILD | |
parent | 4a4e8ce83d82cbe11609c047b1f03acd2833fcae (diff) | |
download | aur-mollyguardctl.tar.gz |
Fix data file installation
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -1,23 +1,29 @@ # Maintainer: Richard Neumann aka. schard <mail at richard dash neumann period de> pkgname='mollyguardctl' -pkgver=1.3.9 -pkgrel=2 +pkgver=1.3.10 +pkgrel=1 pkgdesc='Guards your system from accidental reboots and shutdowns' arch=('any') url="https://github.com/coNQP/${pkgname}" license=('GPLv3') depends=('python' 'python-setuptools') -makedepends=('git' 'python-setuptools-scm') +makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel') source=("git+${url}.git#tag=${pkgver}") md5sums=('SKIP') build() { - cd "${pkgname}" - python setup.py build + cd "${srcdir}/${pkgname}" + python -m build --wheel --no-isolation } package() { - cd "${pkgname}" - python setup.py install --root "${pkgdir}" --optimize=1 --skip-build + cd "${srcdir}/${pkgname}" + python -m installer --destdir="$pkgdir" dist/*.whl + + install -dm 755 "${pkgdir}/usr/lib/systemd/system" + + for UNIT in *.service; do + install -m 644 "${UNIT}" "${pkgdir}/usr/lib/systemd/system/" + done } |