summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0cc854fc16c85d27524059fbbdef511bcc2cb60a (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-git
pkgver=3.0.0
pkgrel=0
pkgdesc="Promtail - Logshipper for Loki"
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"
}