[arch-commits] Commit in aws-vault/repos (community-x86_64 community-x86_64/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Fri Sep 18 20:10:37 UTC 2020


    Date: Friday, September 18, 2020 @ 20:10:36
  Author: anthraxx
Revision: 710742

archrelease: copy trunk to community-x86_64

Added:
  aws-vault/repos/community-x86_64/
  aws-vault/repos/community-x86_64/PKGBUILD
    (from rev 710741, aws-vault/trunk/PKGBUILD)

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

Copied: aws-vault/repos/community-x86_64/PKGBUILD (from rev 710741, aws-vault/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-09-18 20:10:36 UTC (rev 710742)
@@ -0,0 +1,48 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Carlo Cabanilla <carlo.cabanilla at gmail.com>
+# Contributor: Christoph Gysin <christoph.gysin at gmail.com>
+
+pkgname=aws-vault
+pkgver=6.1.0
+pkgrel=1
+pkgdesc='Vault for securely storing and accessing AWS credentials in development environments'
+url='https://github.com/99designs/aws-vault'
+arch=('x86_64')
+license=('MIT')
+depends=('glibc')
+makedepends=('go')
+optdepends=(
+  'zenity: graphical prompt'
+  'kdialog: graphical prompt'
+)
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha256sums=('be4e5970643e586c24ec1246d21a82ce0ef0624a4b7585d49078aca21e459930')
+b2sums=('6416adbfb186c55c1811095e16e9e759e6d092bf8477537e4e53d7c266ae57da289941f0f93353daef5d94d64c885c987581344a339bd9e7c0defbe331ae8e71')
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -ldflags=-linkmode=external -trimpath -mod=readonly -modcacherw"
+  go build -v \
+    -ldflags "-linkmode=external -extldflags '${LDFLAGS}' -X main.Version=v${pkgver}" .
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+  go test ./...
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  install -Dm 755 ${pkgname} -t "${pkgdir}/usr/bin"
+  install -Dm 644 README.md USAGE.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 -p contrib/completions/bash/${pkgname}.bash "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+  install -Dm 644 -p contrib/completions/zsh/${pkgname}.zsh "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
+  install -Dm 644 -p contrib/completions/fish/${pkgname}.fish "${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish"
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list