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

Christian Rebischke shibumi at archlinux.org
Sun Apr 19 14:11:11 UTC 2020


    Date: Sunday, April 19, 2020 @ 14:11:10
  Author: shibumi
Revision: 616486

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++------------------------
 1 file changed, 30 insertions(+), 24 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-19 14:11:03 UTC (rev 616485)
+++ PKGBUILD	2020-04-19 14:11:10 UTC (rev 616486)
@@ -1,24 +0,0 @@
-# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
-# Contributor: Daniel Martí <mvdan at mvdan.cc>
-
-pkgname=shfmt
-pkgver=3.0.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=('1f513b4629a472a08c4dbc5d788b4cd619197e27a5814de0ac8863629ed5598a715b7106a59fda2c64725c4f896a2c0889c1522b92324d0c1cfc80596d237fd4')
-
-build() {
-  cd "${srcdir}/sh-${pkgver}/cmd/shfmt/"
-  go build -trimpath -ldflags "-extldflags ${LDFLAGS}" .
-}
-
-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 616485, shfmt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-19 14:11:10 UTC (rev 616486)
@@ -0,0 +1,30 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: Daniel Martí <mvdan at mvdan.cc>
+
+pkgname=shfmt
+pkgver=3.1.0
+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=('ff6aed85f8b6959ea34a5029a584f5f1083ca9e09eca4c571a10dda05a65109a2307fd80564a1ddf28fee4dddd668986c407dfbed4fa361f8325399c2a3ae917')
+
+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"
+}



More information about the arch-commits mailing list