# Contributor: Clayton Craft # Maintainer: Clayton Craft pkgname=sleep-inhibitor pkgver=1.20 pkgrel=0 pkgdesc="Simple program to inhibit sleep/suspend when using elogind" url="https://github.com/bulletmark/sleep-inhibitor" arch="noarch" license="GPL-3.0-or-later" makedepends=" py3-setuptools " depends=" elogind py3-ruamel.yaml" source=" $pkgname-$pkgver.tar.gz::https://github.com/bulletmark/sleep-inhibitor/archive/$pkgver.tar.gz sleep-inhibitor.initd sleep-inhibitor.confd " subpackages="$pkgname-openrc $pkgname-pyc" options="!check" # no tests build() { python3 setup.py build } package() { python3 setup.py install --skip-build --root="$pkgdir" install -Dm644 "$builddir"/sleep-inhibitor.conf \ "$pkgdir"/etc/sleep-inhibitor.conf # openrc init/conf install -Dm755 "$srcdir"/sleep-inhibitor.initd \ "$pkgdir"/etc/init.d/sleep-inhibitor install -Dm644 "$srcdir"/sleep-inhibitor.confd \ "$pkgdir"/etc/conf.d/sleep-inhibitor # systemd service files have no use here rm "$pkgdir"/usr/share/sleep-inhibitor/sleep-inhibitor.service } sha512sums=" 822f87d0d058e7af61f2aa08d0eca0e10a080a35b0dfae2ebf6e7f59c247ff9c2db3121aad009c4ec498039b60712bcf903210b60335e48c0dd3442e90e170c4 sleep-inhibitor-1.20.tar.gz 359c218ea694f478d863ec650ca5bac2f92edda149c00c4ab1645836bf36a3079712e2a0c99c6fa6c12eb81c4480e2697d73e553d19c7693c1869aaf5248445f sleep-inhibitor.initd 6ffaf358329d5e6c29c375b3cf043a8cd404204fc94f5e0cb9e288cb8852d32d6c631ce635201493d3e6467bae23584c94c57d9ed1ca9f57b30671e00b1bba80 sleep-inhibitor.confd "