[arch-commits] Commit in shfmt/repos/community-x86_64 (PKGBUILD PKGBUILD)
Maxim Baz
maximbaz at archlinux.org
Fri Feb 19 16:02:12 UTC 2021
Date: Friday, February 19, 2021 @ 16:02:12
Author: maximbaz
Revision: 865946
archrelease: copy trunk to community-x86_64
Added:
shfmt/repos/community-x86_64/PKGBUILD
(from rev 865945, shfmt/trunk/PKGBUILD)
Deleted:
shfmt/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 74 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 39 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-19 16:02:04 UTC (rev 865945)
+++ PKGBUILD 2021-02-19 16:02:12 UTC (rev 865946)
@@ -1,35 +0,0 @@
-# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
-# Contributor: Daniel Martí <mvdan at mvdan.cc>
-
-pkgname=shfmt
-pkgver=3.2.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=('dcc8d256a3220d4216291c929bc462a910ffb43f28f9e89777138d1df5c40f8d6ba017341f73b955950c4ba3f39da5902459985ad02cdb938b9a9f44ad1c3147')
-
-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 .
-}
-
-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 865945, shfmt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-02-19 16:02:12 UTC (rev 865946)
@@ -0,0 +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.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
+}
More information about the arch-commits
mailing list