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

Christian Rebischke shibumi at archlinux.org
Mon Nov 12 09:17:39 UTC 2018


    Date: Monday, November 12, 2018 @ 09:17:38
  Author: shibumi
Revision: 406410

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: shfmt/repos/community-x86_64/PKGBUILD (from rev 406409, shfmt/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-11-12 09:17:38 UTC (rev 406410)
@@ -0,0 +1,32 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+# Contributor: Daniel Martí <mvdan at mvdan.cc>
+
+pkgname=shfmt
+_pkg=sh
+_name="${pkgname}"
+pkgver=2.6.0
+pkgrel=2
+pkgdesc="Format shell programs"
+url="https://github.com/mvdan/${_pkg}"
+license=('BSD')
+arch=('i686' 'x86_64')
+makedepends=('git' 'go-pie')
+source=("git+${url}#tag=v${pkgver}")
+sha512sums=('SKIP')
+
+prepare() {
+	cd "${srcdir}"
+	mkdir -p "src/mvdan.cc"
+	mv "${_pkg}" "src/mvdan.cc/${_pkg}"
+}
+
+build() {
+	cd "${srcdir}/src/mvdan.cc/${_pkg}/cmd/${_name}"
+	GOPATH="${srcdir}" go build -ldflags='-s -w'
+}
+
+package() {
+	cd "${srcdir}/src/mvdan.cc/${_pkg}"
+	install -Dm755 "cmd/${_name}/${_name}" "${pkgdir}/usr/bin/${_name}"
+	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list