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
2023-11-27 07:57:52 -06:00
pkgver=1.23.7
2023-11-22 20:32:48 -06:00
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")
2023-11-27 07:57:52 -06:00
b2sums=('ac2ff08b103ae63ffeb63c2c7ea424f42be825eef88b1f2fa46594df70c3807eb0dbc5c7d7655fb6b68d01dac12734b31d5f1d9bfa43f3ebbf8eba98dd38c6e7'
'552035364af52e564059141dd71911361a8743bb44cd626b729f768faa9c9fcdac4081dcef19dc27be5d0a6e38eea074e2dc5937028bb8c6fbc2f0ecc4f90ce4'
2023-11-22 20:32:48 -06:00
'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
}