[arch-commits] Commit in shfmt/trunk (PKGBUILD)
Maxim Baz
maximbaz at archlinux.org
Fri Feb 19 16:02:04 UTC 2021
Date: Friday, February 19, 2021 @ 16:02:04
Author: maximbaz
Revision: 865945
shfmt: 3.2.2, fix FS#68702, format with shfmt :)
Modified:
shfmt/trunk/PKGBUILD
----------+
PKGBUILD | 36 ++++++++++++++++++++----------------
1 file changed, 20 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-19 15:57:40 UTC (rev 865944)
+++ PKGBUILD 2021-02-19 16:02:04 UTC (rev 865945)
@@ -1,35 +1,39 @@
# 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.1
+pkgver=3.2.2
pkgrel=1
pkgdesc="Format shell programs"
url="https://github.com/mvdan/sh"
license=('BSD')
arch=('x86_64')
-makedepends=('git' 'go-pie')
+depends=('glibc')
+makedepends=('git' 'go' 'scdoc')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mvdan/sh/archive/v${pkgver}.tar.gz")
-sha512sums=('dcc8d256a3220d4216291c929bc462a910ffb43f28f9e89777138d1df5c40f8d6ba017341f73b955950c4ba3f39da5902459985ad02cdb938b9a9f44ad1c3147')
+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 .
+ 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 ./...
-
+ 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"
+ 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