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

Sven-Hendrik Haase svenstaro at archlinux.org
Tue Jun 2 23:31:09 UTC 2020


    Date: Tuesday, June 2, 2020 @ 23:31:08
  Author: svenstaro
Revision: 638129

archrelease: copy trunk to community-x86_64

Added:
  go-bindata/repos/community-x86_64/PKGBUILD
    (from rev 638128, go-bindata/trunk/PKGBUILD)
Deleted:
  go-bindata/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   63 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 33 insertions(+), 30 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-02 23:31:01 UTC (rev 638128)
+++ PKGBUILD	2020-06-02 23:31:08 UTC (rev 638129)
@@ -1,30 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
-# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com>
-
-pkgname=go-bindata
-pkgver=3.5.2
-pkgrel=1
-pkgdesc="A small utility which generates Go code from any file"
-arch=('x86_64')
-url='https://github.com/shuLhan/go-bindata'
-license=('CC0 1.0')
-depends=('glibc')
-makedepends=('go-pie')
-source=("https://github.com/shuLhan/go-bindata/archive/v${pkgver}.tar.gz")
-sha512sums=('2e9a807445ed6ddfd681f6886503c116c8ceba6572f5a8b2cdbf78c585a476b5dfb0dc967b62f1510caef8e1e09db39043362e252da773272a79a7b257c9d275')
-
-prepare() {
-    mkdir -p "${srcdir}/src/github.com/shuLhan/"
-    mv "${srcdir}/${pkgname}-${pkgver}" "${srcdir}/src/github.com/shuLhan/go-bindata"
-}
-
-build() {
-    cd "${srcdir}/src/github.com/shuLhan/go-bindata/cmd/go-bindata"
-    GOPATH="${srcdir}" go build
-}
-
-package() {
-    cd "${srcdir}/src/github.com/shuLhan/go-bindata/cmd/go-bindata"
-    install -Dm755 "go-bindata" "${pkgdir}/usr/bin/go-bindata"
-    install -Dm644 ../../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}

Copied: go-bindata/repos/community-x86_64/PKGBUILD (from rev 638128, go-bindata/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-06-02 23:31:08 UTC (rev 638129)
@@ -0,0 +1,33 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com>
+
+pkgname=go-bindata
+pkgver=3.5.2
+pkgrel=2
+pkgdesc="A small utility which generates Go code from any file"
+arch=('x86_64')
+url='https://github.com/shuLhan/go-bindata'
+license=('custom:CC0')
+depends=('glibc')
+makedepends=('go')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/shuLhan/go-bindata/archive/v${pkgver}.tar.gz")
+sha512sums=('2e9a807445ed6ddfd681f6886503c116c8ceba6572f5a8b2cdbf78c585a476b5dfb0dc967b62f1510caef8e1e09db39043362e252da773272a79a7b257c9d275')
+
+build() {
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+
+  cd $pkgname-$pkgver
+
+  go build ./cmd/...
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  install -Dm755 "go-bindata" "${pkgdir}/usr/bin/go-bindata"
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}


More information about the arch-commits mailing list