ctucx.git: alpine-pkgs

My personal alpine-packages [deprecated in favor of nixos]

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=fritzbox-exporter
pkgver=0.0.4
pkgrel=1
pkgdesc="prometheus exporter for lte fritzboxes"
url="https://cgit.ctu.cx/fritzbox-exporter"
arch="all"
license="MIT"
depends=""
makedepends="nim"
install="${pkgname}.pre-install"
subpackages="${pkgname}-openrc"
_commit="b0faf94254fb6c98f775737c8629544e389b61d0"
source="${pkgname}-${_commit}.tar.gz::https://cgit.ctu.cx/fritzbox-exporter/snapshot/fritzbox-exporter-${_commit}.tar.gz
        ${pkgname}.confd
        ${pkgname}.initd"
builddir="${srcdir}/${pkgname}-${_commit}/"

build() {
	cd ${builddir}
	nim c -d:release --nimcache:$PWD src/fb_exporter.nim
}

check() {
	:
}

package() {
	install -Dm755 src/fb_exporter ${pkgdir}/usr/bin/fb_exporter
	install -Dm755 "${srcdir}"/${pkgname}.initd ${pkgdir}/etc/init.d/${pkgname}
	install -Dm644 "${srcdir}"/${pkgname}.confd ${pkgdir}/etc/conf.d/${pkgname}
}

sha512sums="9861d42d3ce3ec60b7ddb3d572fc289250b0ac347a4cff9b2a7d02428b4876dd3d707830873e0bb168e797b08c261f277e9863c2dcfb3dd12d7de25a90dee832  fritzbox-exporter-b0faf94254fb6c98f775737c8629544e389b61d0.tar.gz
051e44ab6e0680518db6b0de443b8dde852da7ce6818d95608fde77044308b35e8cfab5a58b9f2a264893b25b8add70365fb5aee3a565fe8d2223539e8743ae1  fritzbox-exporter.confd
59720844ebb7658bbb06d4dad69b265c4c917e27c7631e2081d618b6086d178a999055fcef76ca333fdc8b475618d65ef9b998bce702254d101892ebefada02b  fritzbox-exporter.initd"