2024-03-03 19:37:09 +00:00
|
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
pkgname=uptime-kuma
|
2024-04-18 20:50:05 +00:00
|
|
|
pkgver=1.23.12
|
2024-03-03 19:37:09 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc='A fancy self-hosted monitoring tool'
|
|
|
|
arch="all"
|
|
|
|
url="https://github.com/louislam/uptime-kuma"
|
|
|
|
license="MIT"
|
|
|
|
depends="nodejs"
|
|
|
|
makedepends="npm"
|
|
|
|
source="
|
|
|
|
uptime-kuma-$pkgver.tar.gz::https://github.com/louislam/uptime-kuma/archive/refs/tags/$pkgver.tar.gz
|
|
|
|
uptime-kuma.openrc
|
|
|
|
uptime-kuma.conf
|
|
|
|
"
|
|
|
|
subpackages="$pkgname-doc $pkgname-openrc"
|
|
|
|
install="$pkgname.pre-install"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
npm ci
|
|
|
|
npm run build
|
|
|
|
rm -Rf "$builddir"/node_modules
|
|
|
|
npm ci --omit=dev
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -dm 755 \
|
|
|
|
"$pkgdir"/usr/share/webapps \
|
|
|
|
"$pkgdir"/usr/share/doc \
|
|
|
|
"$pkgdir"/usr/share/licenses/uptime-kuma \
|
|
|
|
"$pkgdir"/etc/init.d \
|
|
|
|
"$pkgdir"/etc/conf.d
|
|
|
|
|
|
|
|
# install
|
|
|
|
cp -a "$builddir" "$pkgdir/usr/share/webapps/uptime-kuma"
|
|
|
|
|
|
|
|
# openrc
|
|
|
|
install -Dm755 "$srcdir"/uptime-kuma.openrc "$pkgdir"/etc/init.d/uptime-kuma
|
|
|
|
install -Dm755 "$srcdir"/uptime-kuma.conf "$pkgdir"/etc/conf.d/uptime-kuma
|
|
|
|
|
|
|
|
# docs and licenses
|
|
|
|
mv "$pkgdir"/usr/share/webapps/uptime-kuma/LICENSE "$pkgdir"/usr/share/licenses/uptime-kuma/.
|
|
|
|
}
|
|
|
|
sha512sums="
|
2024-04-18 20:50:05 +00:00
|
|
|
2ea10707ddd778990ecbd122d2c66d409218f0182b1f4d9183a3678799c161edb5afa0373874bc0a791b774e2bf3582d245b0ed07365d07569390f1895017ae2 uptime-kuma-1.23.12.tar.gz
|
2024-03-03 19:37:09 +00:00
|
|
|
0ceddb98a6f318029b8bd8b5a49b55c883e77a5f8fffe2b9b271c9abf0ac52dc7a6ea4dbb4a881124a7857f1e43040f18755c1c2a034479e6a94d2b65a73d847 uptime-kuma.openrc
|
|
|
|
1dbae536b23e3624e139155abbff383bba3209ff2219983da2616b4376b1a5041df812d1e5164716fc6e967a8446d94baae3b96ee575d400813cc6fdc2cc274e uptime-kuma.conf
|
|
|
|
"
|