blob: 7cf1884b8dbcf165b6bbce4e440b515c194f1c48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Maintainer: Eslam Allam eslamallam73@gmail.com
pkgname=docker-sleep-inhibitor
conflicts=()
pkgver=0.0.2
pkgrel=1
pkgdesc="Watches for containers with system.sleep.inhibit=true label and inhibits the system from sleeping"
arch=('any')
url="https://github.com/eslam-allam/docker-sleep-inhibitor"
license=('MIT') # Change as needed
depends=('docker' 'systemd' 'bash') # List dependencies
source=("${pkgname}::git+${url}.git#tag=v${pkgver}" "${pkgname}.service")
install="${pkgname}.install"
sha256sums=('0447a99bb9693a7550d266d285ca4f7b20513c89cc6e0bae80c9f2e89c8c273a'
'f573338784e3887eff568860061cdf131a97f50057fd6efd58d873866bf46a35')
package() {
cd "${srcdir}" || exit 1
install -Dm755 "${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
}
|