~dricottone/huttese-apk

ref: 71d876dd89e2215f58930abcc37bcfb5db1bf833 huttese-apk/sr.ht/chartsrv/APKBUILD -rw-r--r-- 1.2 KiB
71d876dd — Drew DeVault Upgrade py3-celery, py3-kombu 2 years ago
                                                                                
64da9790 Drew DeVault
bc950110 Drew DeVault
64da9790 Drew DeVault
bc950110 Drew DeVault
64da9790 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
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
"