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

Santiago Torres-Arias sangy at archlinux.org
Tue Apr 28 15:38:02 UTC 2020


    Date: Tuesday, April 28, 2020 @ 15:38:01
  Author: sangy
Revision: 622047

archrelease: copy trunk to community-x86_64

Added:
  bashbrew/repos/community-x86_64/
  bashbrew/repos/community-x86_64/PKGBUILD
    (from rev 622046, bashbrew/trunk/PKGBUILD)

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

Copied: bashbrew/repos/community-x86_64/PKGBUILD (from rev 622046, bashbrew/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-04-28 15:38:01 UTC (rev 622047)
@@ -0,0 +1,34 @@
+# Maintainer: Santiago Torres-Arias <santiago at archlinux.org>
+
+pkgname=bashbrew
+pkgver=0.1.1
+pkgrel=1
+pkgdesc="Canonical build tool for Docker official images"
+arch=('x86_64')
+url="https://github.com/docker-library/bashbrew/"
+license=('Apache')
+depends=('docker' 'git')
+makedepends=('go' 'git')
+checkdepends=()
+source=("git+https://github.com/docker-library/bashbrew?tag=${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+    cd "${pkgname}"
+    export CGO_LDFLAGS="${LDFLAGS}"
+    export CGO_CFLAGS="${CFLAGS}"
+    export CGO_CPPFLAGS="${CPPFLAGS}"
+    export CGO_CXXFLAGS="${CXXFLAGS}"
+    export GOFLAGS="-buildmode=pie -trimpath -modcacherw"
+    go build -o "${pkgname}" ./...
+}
+
+check() {
+	cd "${pkgname}"
+    go test ./...
+}
+
+package() {
+    cd "${pkgname}"
+    install -m755 -Dt "${pkgdir}/usr/bin/" "${pkgname}"
+}


More information about the arch-commits mailing list