[arch-commits] Commit in cosign/repos (community-x86_64 community-x86_64/PKGBUILD)
Santiago Torres-Arias
sangy at archlinux.org
Sat Mar 20 01:08:33 UTC 2021
Date: Saturday, March 20, 2021 @ 01:08:32
Author: sangy
Revision: 895531
archrelease: copy trunk to community-x86_64
Added:
cosign/repos/community-x86_64/
cosign/repos/community-x86_64/PKGBUILD
(from rev 895530, cosign/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: cosign/repos/community-x86_64/PKGBUILD (from rev 895530, cosign/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-03-20 01:08:32 UTC (rev 895531)
@@ -0,0 +1,34 @@
+# Maintainer: Santiago Torres-Arias <santiago at archlinux.org>
+
+pkgname=cosign
+pkgver=0.1.0
+pkgrel=1
+pkgdesc="Container Signing with support for ephemeral keys and Sigstore signing"
+arch=('x86_64')
+url="https://github.com/sigstore/cosign"
+license=('Apache')
+makedepends=('go' 'git')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sigstore/${pkgname}/archive/v${pkgver}.tar.gz")
+sha256sums=('d3af55eb3d68b41dbefbbd00f18c4bed8a89d7839ff6c6f0da89c9b1a1214d3b')
+
+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"
+ mkdir build
+ go build -o build/ ./...
+}
+
+test() {
+ cd "${pkgname}-${pkgver}"
+ make test
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ install -Dm755 build/cosign "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm755 build/copasetic "${pkgdir}/usr/bin/${pkgname}"
+}
More information about the arch-commits
mailing list