summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 06a70b0123c2ed15f466133eb40434a8e7796254 (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
# Maintainer: Arthur Vuillard <arthur@hashbang.fr>

name=watchghost
pkgname=$name
pkgver=0.3.0
pkgrel=3
epoch=1
pkgdesc="Your invisible but loud monitoring pet"
arch=('any')
url='https://gitlab.com/localg-host/watchghost/'
license=('AGPLv3')
depends=('python-aiohttp' 'python-aioftp' 'python-asyncssh' 'python-whois' 'python-influxdb' 'python-aiohttp-jinja2')
makedepends=('python-setuptools')
source=("https://gitlab.com/localg-host/watchghost/-/archive/${pkgver}/watchghost-${pkgver}.tar.gz")
sha256sums=('3cdc89a27ccbcc5494d7c480c400fbb4a97a299ae3acd6d273b2a22d7e18b8a4')
conflicts=('watchghost-git')
install=watchghost.install
backup=(
    'etc/watchghost/watchers.toml'
    'etc/watchghost/loggers.toml'
    'etc/watchghost/servers.toml'
    'etc/watchghost/groups.toml'
)

package() {
    cd "${srcdir}/${name}-${pkgver}"
    python3 setup.py build
    python3 setup.py install --prefix=/usr --root="${pkgdir}"

    install -D $startdir/sysusers.conf $pkgdir/usr/lib/sysusers.d/watchghost.conf
    install -D $startdir/watchghost.service $pkgdir/usr/lib/systemd/system/watchghost.service
    for filename in groups loggers servers watchers ; do
      install -D $srcdir/${name}-${pkgver}/watchghost/etc/$filename.toml $pkgdir/etc/watchghost/$filename.toml
    done
}