blob: caacfd42f09dba91a4a0afb7041b6a00ceda4ee2 (
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
39
40
41
|
# Maintainer: Arthur Vuillard <arthur@hashbang.fr>
name=watchghost
pkgname=$name-git
pkgver=0.1.0.git_121.32a7631
pkgrel=2
epoch=1
pkgdesc="Your invisible but loud monitoring pet"
arch=('any')
url='https://gitlab.com/localg-host/watchghost/'
license=('AGPLv3')
depends=('python-tornado' 'python-aioftp' 'python-asyncssh')
makedepends=('python-setuptools')
source=('git+https://gitlab.com/localg-host/watchghost.git')
sha256sums=('SKIP')
install=watchghost.install
backup=(
'etc/watchghost/watchers'
'etc/watchghost/loggers'
'etc/watchghost/servers'
'etc/watchghost/groups'
)
pkgver(){
cd $srcdir/$name
echo 0.1.0.git_$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
package() {
cd "$srcdir/$name"
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/watchghost/watchghost/etc/$filename $pkgdir/etc/watchghost/$filename
done
}
|