[arch-commits] Commit in (loki loki/repos loki/trunk loki/trunk/PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Sat Dec 21 15:26:23 UTC 2019


    Date: Saturday, December 21, 2019 @ 15:26:22
  Author: jelle
Revision: 372022

loki: WIP

Added:
  loki/
  loki/repos/
  loki/trunk/
  loki/trunk/PKGBUILD

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Added: loki/trunk/PKGBUILD
===================================================================
--- loki/trunk/PKGBUILD	                        (rev 0)
+++ loki/trunk/PKGBUILD	2019-12-21 15:26:22 UTC (rev 372022)
@@ -0,0 +1,44 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=loki
+pkgver=1.2.0
+pkgrel=1
+pkgdesc='like Prometheus, but for logs'
+url='https://github.com/grafana/loki'
+arch=('x86_64')
+license=('Apache')
+depends=('glibc')
+makedepends=('go-pie' 'git')
+source=($pkgname-$pkgver.tar.gz::https://github.com/grafana/loki/archive/v1.2.0.tar.gz)
+sha512sums=('2a522b0c5b7bddbdf810c229dbd21a2fcac3717d1fc940bfa98f74f5e86000cb36ec17ae2ef900a7b302997860a9d8b904f1e23d18964365579d6a4a39665918')
+
+build() {
+  cd loki-$pkgver
+
+  LDFLAGS="-extldflags $LDFLAGS"
+
+  go build \
+    -gcflags "all=-trimpath=$PWD" \
+    -asmflags "all=-trimpath=$PWD" \
+    -ldflags "$LDFLAGS" \
+    ./cmd/loki
+
+  go build \
+    -gcflags "all=-trimpath=$PWD" \
+    -asmflags "all=-trimpath=$PWD" \
+    -ldflags "$LDFLAGS" \
+    ./cmd/promtail
+}
+
+check() {
+  cd loki-$pkgver
+
+  go test ./...
+}
+
+package() {
+  cd loki-$pkgver
+
+  install -Dm755 -t "$pkgdir"/usr/bin loki promtail
+
+}



More information about the arch-commits mailing list