# Contributor: Antoine Martin (ayakael) # Maintainer: Antoine Martin (ayakael) pkgname=uptime-kuma pkgver=1.23.11 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=" 6cd6aef96ac93597334b8fc7987611420b20ee45c5c1348ab42f05865fb679913038fd333416d239c43e047c9995553d2ab8e6fb7a05cea00d290fa05a26fa4e uptime-kuma-1.23.11.tar.gz 0ceddb98a6f318029b8bd8b5a49b55c883e77a5f8fffe2b9b271c9abf0ac52dc7a6ea4dbb4a881124a7857f1e43040f18755c1c2a034479e6a94d2b65a73d847 uptime-kuma.openrc 1dbae536b23e3624e139155abbff383bba3209ff2219983da2616b4376b1a5041df812d1e5164716fc6e967a8446d94baae3b96ee575d400813cc6fdc2cc274e uptime-kuma.conf "