[arch-commits] Commit in shfmt/repos/community-x86_64 (PKGBUILD PKGBUILD)
Christian Rebischke
shibumi at archlinux.org
Sat Jun 27 16:01:48 UTC 2020
Date: Saturday, June 27, 2020 @ 16:01:47
Author: shibumi
Revision: 654961
archrelease: copy trunk to community-x86_64
Added:
shfmt/repos/community-x86_64/PKGBUILD
(from rev 654960, shfmt/trunk/PKGBUILD)
Deleted:
shfmt/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 65 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 35 insertions(+), 30 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-06-27 16:01:40 UTC (rev 654960)
+++ PKGBUILD 2020-06-27 16:01:47 UTC (rev 654961)
@@ -1,30 +0,0 @@
-# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
-# Contributor: Daniel Martà <mvdan at mvdan.cc>
-
-pkgname=shfmt
-pkgver=3.1.1
-pkgrel=1
-pkgdesc="Format shell programs"
-url="https://github.com/mvdan/sh"
-license=('BSD')
-arch=('x86_64')
-makedepends=('git' 'go-pie')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mvdan/sh/archive/v${pkgver}.tar.gz")
-sha512sums=('3cfca494b1c3d87b7b5cf6435909637ee6e15147fe35a1f628a1c9f127c884efa4aae9e2e1dec989ff6a32cbad08cea925c6c427f9fe7ebe41333326d1ea747c')
-
-build() {
- cd "${srcdir}/sh-${pkgver}/cmd/shfmt/"
- go build -trimpath -ldflags "-extldflags ${LDFLAGS}" .
-}
-
-check() {
- cd "${srcdir}/sh-${pkgver}/"
- go test ./...
-
-}
-
-package() {
- cd "${srcdir}/sh-${pkgver}/"
- install -Dm755 "cmd/shfmt/shfmt" "${pkgdir}/usr/bin/shfmt"
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
Copied: shfmt/repos/community-x86_64/PKGBUILD (from rev 654960, shfmt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-06-27 16:01:47 UTC (rev 654961)
@@ -0,0 +1,35 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: Daniel Martà <mvdan at mvdan.cc>
+
+pkgname=shfmt
+pkgver=3.1.2
+pkgrel=1
+pkgdesc="Format shell programs"
+url="https://github.com/mvdan/sh"
+license=('BSD')
+arch=('x86_64')
+makedepends=('git' 'go-pie')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mvdan/sh/archive/v${pkgver}.tar.gz")
+sha512sums=('6e367a7a05c5e18d6de7f822ef181443b22d05f94a5fe5a0cf4759bc1e4a07dfac0e2704eb3025868e0f44c0e04a9cbd28dfe5a977381b2ba6fe274ac97ef29a')
+
+build() {
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+ cd "${srcdir}/sh-${pkgver}/cmd/shfmt/"
+ go build .
+}
+
+check() {
+ cd "${srcdir}/sh-${pkgver}/"
+ go test ./...
+
+}
+
+package() {
+ cd "${srcdir}/sh-${pkgver}/"
+ install -Dm755 "cmd/shfmt/shfmt" "${pkgdir}/usr/bin/shfmt"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list