[arch-commits] Commit in plumber/repos (community-x86_64 community-x86_64/PKGBUILD)
Christian Rebischke
shibumi at gemini.archlinux.org
Mon Dec 13 20:41:24 UTC 2021
Date: Monday, December 13, 2021 @ 20:41:24
Author: shibumi
Revision: 1072194
archrelease: copy trunk to community-x86_64
Added:
plumber/repos/community-x86_64/
plumber/repos/community-x86_64/PKGBUILD
(from rev 1072193, plumber/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: plumber/repos/community-x86_64/PKGBUILD (from rev 1072193, plumber/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-12-13 20:41:24 UTC (rev 1072194)
@@ -0,0 +1,35 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+
+pkgname=plumber
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="Swiss army knife CLI tool for interacting with Kafka, RabbitMQ and other messaging systems."
+arch=('x86_64')
+url="https://github.com/batchcorp/plumber"
+license=('Apache')
+depends=('glibc')
+makedepends=('go' 'git')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/batchcorp/${pkgname}/archive/v${pkgver}.tar.gz")
+sha512sums=('da32454205e8d54813e28525157791b68bb06801f078b1dd189a9b47a2a4708585f9d84316d93f22a8978939a3495e025c22c06c4482a5d72a44e9cca47fc2a3')
+b2sums=('e331b433efa6a54a81f6d8166e1ccca8e68cb3bd18849492313c72fd4d71bce497f485f3bf3dfa916f218a45193ca6c11d851dbf2d68ada1db881ae5ce365dbd')
+
+build(){
+ cd "${pkgname}-${pkgver}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -ldflags=-linkmode=external -trimpath -mod=readonly -modcacherw"
+ go build -o plumber-bin .
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ go test ./...
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ install -Dm755 plumber-bin "${pkgdir}/usr/bin/${pkgname}"
+}
+
More information about the arch-commits
mailing list