1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
3 pkgname=nginx-prometheus-exporter
4 pkgdesc='NGINX Prometheus Exporter for NGINX and NGINX Plus'
9 url="https://github.com/nginxinc/nginx-prometheus-exporter"
12 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/nginxinc/nginx-prometheus-exporter/archive/v${pkgver}.tar.gz
13 nginx-prometheus-exporter.service
14 nginx-prometheus-exporter.conf)
15 sha512sums=('3bfd146a07a970268aefdf5a76ec449608e8e3584cd32128d4f70833e4a31f57a77c49b578ffb79201eceab2b2fc8e463cd39bd66b1ee8e6568e0766d8a5807f'
16 'd29541b1afe15bfe90ac9d54f0771ade4c8cd9d4291d0a9b1e9ffb4f38f1ae3739bef79a0120ca7c79ea5b580d224b09e9ca7645c92d8c4bc991532759249bb5'
17 '843d6903c8da8356cef0c53722c176f5ed12d140a2888f3f3cf5dedaf6437fdc3c0a527ba6635bd949b28a64af98221aeb5caa13edb12b05a712c6e2aadddf77')
26 -ldflags "-linkmode external -extldflags \"${LDFLAGS}\" -X main.version=${pkgver} -X main.gitCommit=${pkgver}" \
36 install -Dm644 nginx-prometheus-exporter.service "$pkgdir"/usr/lib/systemd/system/nginx-prometheus-exporter.service
37 install -Dm644 nginx-prometheus-exporter.conf "${pkgdir}"/etc/conf.d/nginx-prometheus-exporter
40 install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname