summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc9d8b3cf617eb885227364b83ff1c6aa1d39025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Maintainer: thorko contact@thorko.de
pkgname=promtail-bin
pkgver=2.9.1
pkgrel=0
pkgdesc="Loki: like Prometheus, but for logs."
arch=('x86_64')
url='https://github.com/grafana/loki'
license=('AGPL-3.0-only')
makedepends=('git' 'go' 'make')
source=("${pkgname}::git+https://github.com/grafana/loki.git")
sha256sums=('SKIP')

build() {
  cd "$srcdir/$pkgname"
  make PROMTAIL_JOURNAL_ENABLED=true promtail
}

package() {
    install -Dm0755 "$srcdir/$pkgname/clients/cmd/promtail/promtail" "${pkgdir}/usr/bin/promtail"
}