blob: 1d642594ce21e0df62ad719d3567a314ce75110e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me)
pkgname=sysdweb
pkgver=1.1.5
pkgrel=1
pkgdesc='Control systemd services through Web or REST API'
arch=('any')
url='https://github.com/ogarcia/sysdweb'
license=('GPL3')
depends=('python-bottle' 'python-dbus' 'python-pam' 'python-systemd')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
backup=("etc/${pkgname}.conf")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ogarcia/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('ab0ecea40c93a31ce6bf5f594d7fc6c948ae2debb5482e341bfd5323fc712d2e')
build() {
cd "${pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
# config file
install -D -m644 "${pkgname}.conf" \
"${pkgdir}/etc/${pkgname}.conf"
# doc file
install -D -m644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
# service files
install -D -m644 "systemd/${pkgname}-system.service" \
"${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
install -D -m644 "systemd/${pkgname}-user.service" \
"${pkgdir}/usr/lib/systemd/user/${pkgname}.service"
}
|