commit 97cae9b21e9263c7b9cc290cb9581787958791a6
parent 3cb357e026063603a60b8e23face5688589753f0
Author: ctucx <c@ctu.cx>
Date: Sun, 21 Feb 2021 21:32:51 +0100
parent 3cb357e026063603a60b8e23face5688589753f0
Author: ctucx <c@ctu.cx>
Date: Sun, 21 Feb 2021 21:32:51 +0100
initial commit
2 files changed, 36 insertions(+), 0 deletions(-)
diff --git a/fritzbox-exporter/.SRCINFO b/fritzbox-exporter/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = fritzbox-exporter + pkgver = 0.1 + pkgrel = 0 + url = https://cgit.ctu.cx/fritzbox-exporter/ + arch = x86_64 + license = GPL-3 + makedepends = nim + makedepends = nimble + depends = glibc + source = fritzbox-exporter-fac404da464bae683f68e9951061623a852af35a.tar.gz::https://cgit.ctu.cx/fritzbox-exporter/snapshot/fritzbox-exporter-fac404da464bae683f68e9951061623a852af35a.tar.gz + sha256sums = e54dc049a3ca7689ea28ea1bdfb5d86024e0ee2fad00109d6fdd41ea1037c3e8 + +pkgname = fritzbox-exporter +
diff --git a/fritzbox-exporter/PKGBUILD b/fritzbox-exporter/PKGBUILD @@ -0,0 +1,22 @@ +pkgname=fritzbox-exporter +pkgver=0.1 +pkgrel=0 +arch=('x86_64') +url="https://cgit.ctu.cx/fritzbox-exporter/" +license=( 'GPL-3' ) +depends=( 'glibc' ) +makedepends=( 'nim' 'nimble' ) +_commit="fac404da464bae683f68e9951061623a852af35a" +source=("${pkgname}-${_commit}.tar.gz::https://cgit.ctu.cx/${pkgname}/snapshot/${pkgname}-${_commit}.tar.gz") +sha256sums=('e54dc049a3ca7689ea28ea1bdfb5d86024e0ee2fad00109d6fdd41ea1037c3e8') + +build() { + cd "$srcdir/${pkgname}-${_commit}/" + nimble build -d:release -y +} + +package() { + cd "$srcdir/${pkgname}-${_commit}" + install -Dm755 ./fb_exporter "$pkgdir"/usr/bin/fb_exporter + install -Dm755 ./fritzbox-exporter.service "$pkgdir"/usr/lib/systemd/system/fritzbox-exporter.service +}