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

Santiago Torres-Arias sangy at archlinux.org
Fri Mar 19 22:14:46 UTC 2021


    Date: Friday, March 19, 2021 @ 22:14:46
  Author: sangy
Revision: 895326

upkgpkg: rekor-0.1.1-1

Added:
  rekor/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-03-19 22:14:46 UTC (rev 895326)
@@ -0,0 +1,28 @@
+# Maintainer: Santiago Torres-Arias <santiago at archlinux.org>
+
+pkgname=rekor
+pkgver=0.1.1
+pkgrel=1
+pkgdesc="Signature Transparency Log -- Sigstore client and server tools"
+arch=('x86_64')
+url="https://github.com/sigstore/rekor-cli"
+license=('Apache')
+makedepends=('go' 'git')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sigstore/rekor/archive/v${pkgver}.tar.gz")
+sha256sums=('554bb6e23f1f071a1d887975e3870dae2bfacb9b754cee5116c4c5ee4594c88e')
+
+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 . ./...
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  install -Dm755 cli "${pkgdir}/usr/bin/${pkgname}-cli"
+  install -Dm755 server "${pkgdir}/usr/bin/${pkgname}-server"
+}



More information about the arch-commits mailing list