~dricottone/huttese-apk

ref: c86c77a1d66ffff4c0a474a406baba4ddf89c55f huttese-apk/sr.ht/chartsrv/APKBUILD -rw-r--r-- 1.2 KiB
c86c77a1 — Drew DeVault pkgkit: allow overriding repository 2 years ago
                                                                                
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
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=chartsrv
pkgver=1.0.2
pkgrel=0
pkgdesc="A web service for generating charts from prometheus data"
url="https://sr.ht/~sircmpwn/chartsrv"
arch="all"
license="MIT"
install="chartsrv.pre-install"
makedepends="go"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz
	chartsrv.confd
	chartsrv.initd
"
subpackages="$pkgname-openrc"

build() {
	go mod vendor
	go build \
		-trimpath \
		-mod=vendor \
		-ldflags "-extldflags $LDFLAGS"
}

check() {
	go test ./...
}

package() {
	install -Dm755 chartsrv "$pkgdir"/usr/bin/chartsrv

	install -Dm644 "$srcdir"/chartsrv.confd \
		"$pkgdir"/etc/conf.d/chartsrv
	install -Dm755 "$srcdir"/chartsrv.initd \
		"$pkgdir"/etc/init.d/chartsrv
}

sha512sums="
3e47605a44484fa21145c878d974b511915dd5de132be41dc7d0e00cb307e78c96bd98d03923adfc2ab8d4dda939954183b3b4856a962d02db54e5e61c6c4ed9  chartsrv-1.0.2.tar.gz
27459c5acb17fbb6f7d536fc21aff7aac1ef13d5c79441242a6d99f818758b053fdf27b294d80336c699b0dec0fc844d870cd5d46469356f3c90f792953da26a  chartsrv.confd
be2c253987df10975a821c26d028919a59d336bd3679fe7cb9c107ec6c494c24f50b35950fd2d38bebaade999284cf77e54a6342caf6cf0d0bab711735987497  chartsrv.initd
"