Commit 61736b70 authored by Clayton Craft's avatar Clayton Craft Committed by Leo
Browse files

testing/sleep-inhibitor: new aport

parent 3470bce4
Pipeline #65760 passed with stages
in 1 minute and 19 seconds
# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=sleep-inhibitor
pkgver=1.7
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"
options="!check" # no tests
build() {
python3 setup.py build
}
package() {
python3 setup.py install --prefix=/usr --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="68b1bb240f9efc76e7b1ea4f4c5f71122b54ab798136790856af191e771506ee8c51c7a0f58061e57960bfcfe6d36a5c1c7b38d53ecf4be1b22da78739ff57d5 sleep-inhibitor-1.7.tar.gz
359c218ea694f478d863ec650ca5bac2f92edda149c00c4ab1645836bf36a3079712e2a0c99c6fa6c12eb81c4480e2697d73e553d19c7693c1869aaf5248445f sleep-inhibitor.initd
6ffaf358329d5e6c29c375b3cf043a8cd404204fc94f5e0cb9e288cb8852d32d6c631ce635201493d3e6467bae23584c94c57d9ed1ca9f57b30671e00b1bba80 sleep-inhibitor.confd"
# required to clean up completely since service forks processes
rc_cgroup_cleanup="yes"
#!/sbin/openrc-run
supervisor="supervise-daemon"
description="Starting Sleep Inhibitor"
command="/usr/bin/sleep-inhibitor"
depend() {
after bootmisc
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment