summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5ac71c18c81505be2b29b9039b66e486740183aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Maintainer: Nils Czernia <nils@czserver.de>

pkgname=prometheus-push-gateway-bin
pkgver=0.6.0
pkgrel=1
pkgdesc="Prometheus push acceptor for ephemeral and batch jobs "
arch=('x86_64')
url="https://github.com/prometheus/pushgateway"
license=('Apache')
makedepends=()
source=("https://github.com/prometheus/pushgateway/releases/download/v${pkgver}/pushgateway-${pkgver}.linux-amd64.tar.gz"
        "prometheus-push-gateway.service")
sha256sums=('f264fe51ff904f648656ce2cdca4256878de307f40c61d51eb8700aae94390ce'
            'fe0ec9b3f18f2f35177fdf8dd8bd5ef0cee3189b65051b4239ad2ba1f5e9961c')

package() {
    install -Dm755 "${srcdir}/pushgateway-${pkgver}.linux-amd64/pushgateway" "${pkgdir}/usr/bin/prometheus-push-gateway"
    install -Dm755 "${srcdir}/prometheus-push-gateway.service" "${pkgdir}/usr/lib/systemd/system/prometheus-push-gateway.service"
}