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

Maxim Baz maximbaz at archlinux.org
Mon Feb 22 19:37:01 UTC 2021


    Date: Monday, February 22, 2021 @ 19:37:01
  Author: maximbaz
Revision: 868881

archrelease: copy trunk to community-x86_64

Added:
  shfmt/repos/community-x86_64/PKGBUILD
    (from rev 868880, shfmt/trunk/PKGBUILD)
Deleted:
  shfmt/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   79 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 40 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-22 19:36:58 UTC (rev 868880)
+++ PKGBUILD	2021-02-22 19:37:01 UTC (rev 868881)
@@ -1,39 +0,0 @@
-# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
-# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
-# Contributor: Daniel Martí <mvdan at mvdan.cc>
-
-pkgname=shfmt
-pkgver=3.2.2
-pkgrel=1
-pkgdesc="Format shell programs"
-url="https://github.com/mvdan/sh"
-license=('BSD')
-arch=('x86_64')
-depends=('glibc')
-makedepends=('git' 'go' 'scdoc')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mvdan/sh/archive/v${pkgver}.tar.gz")
-sha512sums=('a5f0c49433563ed375d3b6b4c41e3ec7bd896730a2bf9b513a3b2c122c39c2cb11f7c80fb04b52aae24e72d23d7c3704e3cf4d32a48d276c6d944377407552c5')
-
-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 -ldflags=-linkmode=external"
-    cd "${srcdir}/sh-${pkgver}/cmd/shfmt/"
-    go build .
-
-    scdoc < "${pkgname}.1.scd" | gzip > "${pkgname}.1.gz"
-}
-
-check() {
-    cd "${srcdir}/sh-${pkgver}/"
-    go test ./...
-}
-
-package() {
-    cd "${srcdir}/sh-${pkgver}/"
-    install -Dm755 -t "${pkgdir}/usr/bin/" "cmd/${pkgname}/${pkgname}"
-    install -Dm644 -t "${pkgdir}/usr/share/man/man1/" "cmd/${pkgname}/${pkgname}.1.gz"
-    install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE
-}

Copied: shfmt/repos/community-x86_64/PKGBUILD (from rev 868880, shfmt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-02-22 19:37:01 UTC (rev 868881)
@@ -0,0 +1,40 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+# Contributor: Daniel Martí <mvdan at mvdan.cc>
+
+pkgname=shfmt
+pkgver=3.2.2
+pkgrel=2
+pkgdesc="Format shell programs"
+url="https://github.com/mvdan/sh"
+license=('BSD')
+arch=('x86_64')
+depends=('glibc')
+makedepends=('git' 'go' 'scdoc')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mvdan/sh/archive/v${pkgver}.tar.gz")
+sha512sums=('a5f0c49433563ed375d3b6b4c41e3ec7bd896730a2bf9b513a3b2c122c39c2cb11f7c80fb04b52aae24e72d23d7c3704e3cf4d32a48d276c6d944377407552c5')
+
+build() {
+    cd "${srcdir}/sh-${pkgver}/cmd/shfmt/"
+
+    export CGO_CPPFLAGS="${CPPFLAGS}"
+    export CGO_CFLAGS="${CFLAGS}"
+    export CGO_CXXFLAGS="${CXXFLAGS}"
+    export CGO_LDFLAGS="${LDFLAGS}"
+    export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+    go build -ldflags "-linkmode=external -extldflags=$LDFLAGS"
+
+    scdoc < "${pkgname}.1.scd" | gzip > "${pkgname}.1.gz"
+}
+
+check() {
+    cd "${srcdir}/sh-${pkgver}/"
+    go test ./...
+}
+
+package() {
+    cd "${srcdir}/sh-${pkgver}/"
+    install -Dm755 -t "${pkgdir}/usr/bin/" "cmd/${pkgname}/${pkgname}"
+    install -Dm644 -t "${pkgdir}/usr/share/man/man1/" "cmd/${pkgname}/${pkgname}.1.gz"
+    install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE
+}


More information about the arch-commits mailing list