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
# Contributor: Leah (ctucx) <leah@ctu.cx>
# Maintainer: Leah (ctucx) <leah@ctu.cx>
pkgname=chartsrv
pkgver=0.0.1
pkgrel=1
pkgdesc="Daemon which renders SVG plots from Prometheus data"
url="https://git.sr.ht/~sircmpwn/chartsrv"
arch="all"
license="MIT"
depends=""
makedepends="go"
install="${pkgname}.pre-install ${pkgname}.post-deinstall"
subpackages="${pkgname}-openrc"
_commit="93505c9a5ede24397fae0cec6ffea0dc77b67993"
source="${pkgname}-${_commit}.tar.gz::https://git.sr.ht/~sircmpwn/chartsrv/archive/${_commit}.tar.gz
${pkgname}.initd
${pkgname}.confd"
builddir="${srcdir}/${pkgname}-${_commit}/"
build() {
cd ${builddir}
go build -o chartsrv main.go
}
check() {
:
}
package() {
install -Dm755 ${builddir}/$pkgname ${pkgdir}/usr/bin/${pkgname}
install -Dm755 ${srcdir}/$pkgname.initd ${pkgdir}/etc/init.d/${pkgname}
install -Dm644 ${srcdir}/$pkgname.confd ${pkgdir}/etc/conf.d/${pkgname}
}
sha512sums="834b4824e3a0d651100d0ee06fa30eab28cf15a151b255a79a9fb9eab0b071212addd8ad25b832ceef316206d598eec4b07606e5335056f56b30ac9dbd4dd68b chartsrv-93505c9a5ede24397fae0cec6ffea0dc77b67993.tar.gz
eaa40ace4ca554d015939da4a2fce8c12260d5a4d6741494766bbfc59ba3ccbd2acccfe1097ff4ac07f116758ba3ddd9899960572196513ea4641706cd45608c chartsrv.initd
81d514b4f3773d4a28808cd72f32a8a080be388086919e718bff9128b40c2e491973e9d6cc2d94f2b45a64966cbdcc92a3945556b31904937c443f73a2e1a347 chartsrv.confd"