~dricottone/huttese-apk

ref: 4bbaacb863e59dee26ad09e129e623209fd7fe93 huttese-apk/sr.ht/metrics.sr.ht/APKBUILD -rw-r--r-- 819 bytes
4bbaacb8 — Simon Ser soju: upgrade 2 years ago
                                                                                
a5767fa7 Drew DeVault
80800668 Drew DeVault
a5767fa7 Drew DeVault
16813ecd Drew DeVault
a5767fa7 Drew DeVault
80800668 Drew DeVault
a5767fa7 Drew DeVault
80800668 Drew DeVault
a5767fa7 Drew DeVault
10c20232 Drew DeVault
a5767fa7 Drew DeVault
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=metrics.sr.ht
_commit=60e2d4b9808c4dc8baaefe41fc85674e5432dca5
pkgver=0_git20200105
pkgrel=0
pkgdesc="SourceHut Prometheus rules"
url="https://git.sr.ht/~sircmpwn/metrics.sr.ht"
arch="noarch"
license="MIT"
checkdepends="prometheus"
install="$pkgname.post-upgrade"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$_commit.tar.gz
"
builddir="$srcdir/$pkgname-$_commit"

check() {
	promtool check rules *.yml
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/etc/prometheus
	for f in *.yml
	do
		install -Dm644 -t "$pkgdir"/etc/prometheus/ "$f"
	done
}

sha512sums="34e365f22cbf787d6313776bb03997cfd74b46c94596743d6dda4b451b86cf2f11c20eef87b551cc7ac5a92c3879a84b80542e923cce765a4bef62f62b030e3d  metrics.sr.ht-rules-0_git20200105.tar.gz"