]> git.sev.monster Git - aports.git/blame_incremental - testing/uptime-kuma/APKBUILD
testing/py3-iso3166: bump pkgrel for python update
[aports.git] / testing / uptime-kuma / APKBUILD
... / ...
CommitLineData
1# Contributor: sev <alpine@sev.monster>
2# Maintainer: sev <alpine@sev.monster>
3pkgname=uptime-kuma
4pkgver=1.18.5
5pkgrel=0
6pkgdesc="A fancy self-hosted monitoring tool"
7url="https://uptime.kuma.pet"
8arch="x86_64"
9license="MIT"
10depends="py3-apprise"
11depends_openrc="nodejs>=14"
12makedepends="npm git"
13install="$pkgname.post-install"
14subpackages="$pkgname-openrc:openrc"
15source="https://github.com/louislam/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz
16 $pkgname.initd
17 $pkgname.confd"
18builddir="$srcdir/$pkgname-$pkgver"
19
20prepare() {
21 default_prepare
22 npm ci
23}
24
25build() {
26 npm run build
27}
28
29check() {
30 npm test
31}
32
33package() {
34 npm prune --omit=dev
35 sharedir="$pkgdir/usr/share/$pkgname"
36 mkdir -pm755 "$sharedir"
37 cp -dR server db node_modules dist "$sharedir"
38 install -Dm755 -t"$sharedir"/src src/util.js
39 install -Dm755 -t"$sharedir"/extra extra/remove-2fa.js \
40 extra/reset-password.js extra/healthcheck.js
41}
42openrc() {
43 pkgdesc="NodeJS server for $pkgname"
44 install -Dm755 "$srcdir/$pkgname.initd" "$subpkgdir/etc/init.d/$pkgname"
45 install -Dm755 "$srcdir/$pkgname.confd" "$subpkgdir/etc/conf.d/$pkgname"
46}
47
48sha512sums="
49b9ae1fac6456c85532463258d51f1e98869efea8c2997d8350805a3ff5cd21a30783dfda45a008ba0fc4c9a824f8f48d7b1f136b74280cd8cf6a3ba53dc30b87 uptime-kuma-1.18.5.tar.gz
508ca2a3e455a3c156385d7e8de037c458045dec75383511ac48341f6f34d9fe6be5e677c238136bde0f83b90c71f10cdd4fb9fa0a9a59982214ddf6c160e7bedd uptime-kuma.initd
5159a5760ccc530428d28b71df46fad79869c1e9c628ed9c173e996768d1d8079bbc7feaea85b5d43fd45caf5a41b03a193b88e4d82ac7e1add6a7a2ff14ec8b9c uptime-kuma.confd
52"
This page took 0.034069 seconds and 4 git commands to generate.