Date: Thursday, July 22, 2021 @ 22:45:00 Author: shibumi Revision: 984106
add fulcio Added: fulcio/ fulcio/repos/ fulcio/trunk/ fulcio/trunk/PKGBUILD ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Added: fulcio/trunk/PKGBUILD =================================================================== --- fulcio/trunk/PKGBUILD (rev 0) +++ fulcio/trunk/PKGBUILD 2021-07-22 22:45:00 UTC (rev 984106) @@ -0,0 +1,36 @@ +# Maintainer: Santiago Torres-Arias <[email protected]> +# Maintainer: Christian Rebischke <[email protected]> + +pkgname=fulcio +pkgver=0.1.0 +pkgrel=1 +pkgdesc="free Root-CA for code signing certs - issuing certificates based on an OIDC email address." +arch=('x86_64') +url="https://github.com/sigstore/fulcio" +license=('Apache') +depends=('glibc') +makedepends=('go' 'git') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/sigstore/${pkgname}/archive/v${pkgver}.tar.gz") +sha512sums=('763c2a8ac42518771ad47b6ec3c5ce16b47a7cffc265cd36397c81165fef89fd04fbcdbdff26bb7ed5267b46227e56049971acfa111197c61ed7fe7a0d0d0ab5') +b2sums=('2ad7137186782743269ed4c1e1b03cd7f39e552d3a89d596053d07c952c599a7c23d38de60f68eece8162c67610b07cb19156b3568bd635b73f0fc535e865724') + +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/ ./... +} + +check() { + cd "${pkgname}-${pkgver}" + make test +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dm755 build/fulcio "${pkgdir}/usr/bin/${pkgname}" +}
