31 lines
1.3 KiB
Bash
31 lines
1.3 KiB
Bash
# Maintainer: Lain Iwakura <lain@serialexperiments.club>
|
|
# Contributor: bgh <aur at bgh dot io>
|
|
|
|
pkgname=uptime-kuma-beta
|
|
pkgver=2.0.0
|
|
pkgrel=1
|
|
pkgdesc='A fancy self-hosted monitoring tool'
|
|
|
|
arch=('any')
|
|
url="https://github.com/louislam/${pkgname/-beta}"
|
|
license=('MIT')
|
|
depends=('nodejs')
|
|
makedepends=('npm')
|
|
|
|
source=(
|
|
"${pkgname}-${pkgver}-beta.1.tar.gz::${url}/archive/refs/tags/${pkgver}-beta.1.tar.gz"
|
|
"${pkgname}-dist-${pkgver}-beta.1.tar.gz::${url}/releases/download/${pkgver}-beta.1/dist.tar.gz"
|
|
"uptime-kuma.service"
|
|
)
|
|
noextract=("${pkgname}-${pkgver}-beta.1.tar.gz")
|
|
|
|
b2sums=('6e9add8620f7a8ac9576271f53c512b78bdbcc35a4ea54eb3ffd31ba2da1d7032722eba4eec82627703a9637f6c3176141130c70774b1051358911d4513bcf0e'
|
|
'8c88cd9d35aca5b5d1545339b11c452ba3b442e40de26d56946dca8fa4e6b146c74b4cc1fdfa9532bfbec7d40e9880219a419248e4a91ae82436c94160004406'
|
|
'dbeac93f20082847cffc991224df2ac85963a03a02898b06b8444d4f33b2f4a51323bdcd2c940df41d1c8beed1e2b75fa449cff7d80dd9d5213f627bbe409f90')
|
|
|
|
package() {
|
|
npm install --global --prefix "$pkgdir"/usr "$srcdir"/$pkgname-${pkgver}-beta.1.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
|
|
}
|