[arch-commits] Commit in (4 files)

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


    Date: Tuesday, April 28, 2020 @ 15:36:45
  Author: sangy
Revision: 622044

add bashbrew

Added:
  bashbrew/
  bashbrew/repos/
  bashbrew/trunk/
  bashbrew/trunk/PKGBUILD

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

Added: bashbrew/trunk/PKGBUILD
===================================================================
--- bashbrew/trunk/PKGBUILD	                        (rev 0)
+++ bashbrew/trunk/PKGBUILD	2020-04-28 15:36:45 UTC (rev 622044)
@@ -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