[arch-commits] Commit in shfmt/trunk (PKGBUILD)
Christian Rebischke
shibumi at archlinux.org
Sun Apr 19 14:11:04 UTC 2020
Date: Sunday, April 19, 2020 @ 14:11:03
Author: shibumi
Revision: 616485
upgpkg: shfmt 3.1.0-1 add check()
Modified:
shfmt/trunk/PKGBUILD
----------+
PKGBUILD | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-19 14:08:40 UTC (rev 616484)
+++ PKGBUILD 2020-04-19 14:11:03 UTC (rev 616485)
@@ -2,7 +2,7 @@
# Contributor: Daniel Martí <mvdan at mvdan.cc>
pkgname=shfmt
-pkgver=3.0.2
+pkgver=3.1.0
pkgrel=1
pkgdesc="Format shell programs"
url="https://github.com/mvdan/sh"
@@ -10,7 +10,7 @@
arch=('x86_64')
makedepends=('git' 'go-pie')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mvdan/sh/archive/v${pkgver}.tar.gz")
-sha512sums=('1f513b4629a472a08c4dbc5d788b4cd619197e27a5814de0ac8863629ed5598a715b7106a59fda2c64725c4f896a2c0889c1522b92324d0c1cfc80596d237fd4')
+sha512sums=('ff6aed85f8b6959ea34a5029a584f5f1083ca9e09eca4c571a10dda05a65109a2307fd80564a1ddf28fee4dddd668986c407dfbed4fa361f8325399c2a3ae917')
build() {
cd "${srcdir}/sh-${pkgver}/cmd/shfmt/"
@@ -17,6 +17,12 @@
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"
More information about the arch-commits
mailing list