1 # Contributor: sev <alpine@sev.monster>
2 # Maintainer: sev <alpine@sev.monster>
6 pkgdesc="A fancy self-hosted monitoring tool"
7 url="https://uptime.kuma.pet"
11 depends_openrc="nodejs>=14"
13 install="$pkgname.post-install"
14 subpackages="$pkgname-openrc:openrc"
15 source="https://github.com/louislam/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz
18 builddir="$srcdir/$pkgname-$pkgver"
35 sharedir="$pkgdir/usr/share/$pkgname"
36 mkdir -pm755 "$sharedir"/src
37 cp -dR server db node_modules dist "$sharedir"
38 install -Dm755 src/util.js "$sharedir"/src
39 install -Dm755 extra/remove-2fa.js extra/reset-password.js \
40 extra/healthcheck.js "$sharedir"/extra
43 pkgdesc="NodeJS server for $pkgname"
44 install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
45 install -Dm755 "$srcdir/$pkgname.confd" "$pkgdir/etc/conf.d/$pkgname"