[arch-commits] Commit in loki/trunk (PKGBUILD)
Daurnimator
daurnimator at gemini.archlinux.org
Thu Jan 13 05:46:11 UTC 2022
Date: Thursday, January 13, 2022 @ 05:46:10
Author: daurnimator
Revision: 1101792
upgpkg: loki 2.4.2-1
Modified:
loki/trunk/PKGBUILD
----------+
PKGBUILD | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-13 03:40:00 UTC (rev 1101791)
+++ PKGBUILD 2022-01-13 05:46:10 UTC (rev 1101792)
@@ -2,7 +2,7 @@
# Maintainer: Jelle van der Waa <jelle at archlinux.org>
pkgname=('loki' 'loki-canary' 'promtail' 'logcli')
-pkgver=2.4.1
+pkgver=2.4.2
pkgrel=1
pkgdesc='like Prometheus, but for logs'
url='https://github.com/grafana/loki'
@@ -10,10 +10,11 @@
license=('AGPL3' 'Apache')
depends=('glibc')
makedepends=('go' 'systemd')
+options=('!lto')
source=($pkgname-$pkgver.tar.gz::https://github.com/grafana/loki/archive/v$pkgver.tar.gz
promtail.sysusers promtail.service promtail.tmpfiles
loki.sysusers loki.service loki.tmpfiles)
-sha512sums=('7700d31cf388a740f78856a5b166ce5ef51290f2d1a651158500133ec4936d148aa13d751b204a360ce81cfdf4d8b7bc76f93fae4269df9b62cca816e49a2647'
+sha512sums=('56e39c17540be1d167ac63cc136fddc54d8d5a0f6c244e6c1013f0452eb887878d99351b3986f3b4495b650c2ca08ec21432bab21400ac293c8844e3f17df79f'
'2b6c44b18ea3c9f955a7450222180d0b20b5fc551d0b7e5d0d8949e40adc847c4166829146260f87a75732cc5473eab0347dd56fc2125517698bac0652738c74'
'7ff5c7324a4c883f5156b55cd025d2df8d8be134c18b1ecc007f89cafe20b4bed6c612b81588c9c660dd2fd3b6091fd952fcd3ad69a44e1ffa02e1eaeb05b290'
'598042c40673a7914c5a1eeccfb78f832379a61f4360212c5d86f667343cf2fc78e98d9025f9717ea64f3e16e0a28f08cd7709706d811656722019f6167dd788'
@@ -21,9 +22,20 @@
'03904b67617e4064a1eb39b6edfaec5d55bc85f142e867d115d3d0e12494a052fddf13bb6f5c541aaca29a18582df2332bb0cc6b8f29928cf6a0d5d2710ead74'
'de40d1e6752edbf8c21317ce1ee10f98dfc869e569c07092c613f7144e261e9438683a145a2e0e37e2a9fc758c5c2f02e1d0ac1c60347e98b147e4a550ec6040')
+prepare() {
+ cd "$pkgname-$pkgver"
+
+ go mod download
+}
+
build() {
cd loki-$pkgver
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export GOPROXY=off
for path in cmd/loki cmd/loki-canary cmd/logcli clients/cmd/promtail; do
go build \
-trimpath \
More information about the arch-commits
mailing list