pkgbuilds/uptime-kuma/PKGBUILD

32 lines
1.2 KiB
Bash
Raw Normal View History

2023-11-22 20:32:48 -06:00
# Maintainer: bgh <aur at bgh dot io>
# Contributor: Sylvain Durand <arch@durand.tf>
pkgname=uptime-kuma
pkgver=1.23.6
pkgrel=1
pkgdesc='A fancy self-hosted monitoring tool'
arch=('any')
url="https://github.com/louislam/${pkgname}"
license=('MIT')
depends=('nodejs')
makedepends=('npm')
source=(
"${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz"
"${pkgname}-dist-${pkgver}.tar.gz::${url}/releases/download/${pkgver}/dist.tar.gz"
"uptime-kuma.service"
)
noextract=("${pkgname}-${pkgver}.tar.gz")
b2sums=('4ec8eda4c400d831cf9f28a88d26d9d87140519f55dac7ca530bc48b8fb52a7f81c9d3144d267b03ebd02f5d26f6397714ce6833c1b5328b16b22f76956e2e53'
'596c3808c65a66a5ae72c8ef9554f6e55c946b43bce92ea4ce0a3106e9bfc207235d1e118dc25ed79c2a61ed1b86b1ba51c4aba7f7fc97a91c90184b6673e33c'
'dbeac93f20082847cffc991224df2ac85963a03a02898b06b8444d4f33b2f4a51323bdcd2c940df41d1c8beed1e2b75fa449cff7d80dd9d5213f627bbe409f90')
package() {
npm install --global --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tar.gz --cache npm-cache
cp --recursive "$srcdir"/dist "$pkgdir"/usr/lib/node_modules/$pkgname/
install -D -m 644 "${srcdir}/uptime-kuma.service" ${pkgdir}/usr/lib/systemd/system/uptime-kuma.service
}