From 3ba4d1ecd8174468d0cf5262ed8b59e38717a794 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sun, 8 Jan 2023 11:48:33 +0300 Subject: [PATCH] =?UTF-8?q?shfmt=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shfmt/lure.sh | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 shfmt/lure.sh diff --git a/shfmt/lure.sh b/shfmt/lure.sh new file mode 100644 index 0000000..b2bee52 --- /dev/null +++ b/shfmt/lure.sh @@ -0,0 +1,42 @@ +name='shfmt' +version='1.0.0' +release='1' +desc='A shell formatter. Supports POSIX Shell, Bash, and mksh.' +homepage='https://' +maintainer="Евгений Храмов " +architectures=('all') +license=('BSD-3-Clause license') +provides=('shfmt') +conflicts=('shtmt') + +sources_amd64=("https://github.com/patrickvane/${name}/releases/download/master/${name}_$GOOS_$GOARCH") +checksums=('SKIP') + +sources_arm=("https://github.com/patrickvane/${name}/releases/download/master/${name}_linux_arm") +checksums=('SKIP') + +sources_386=("https://github.com/patrickvane/shfmt/releases/download/master/shfmt_linux_386") +checksums=('SKIP') + +sources_mips=("https://github.com/patrickvane/${name}/releases/download/master/${name}_linux_mips") +checksums=('SKIP') + +sources_mips64=("https://github.com/patrickvane/${name}/releases/download/master/${name}_linux_mips64") +checksums=('SKIP') + +sources_mips64le=("https://github.com/patrickvane/${name}/releases/download/master/${name}_linux_mips64le") +checksums=('SKIP') + +sources_mipsle=("https://github.com/patrickvane/${name}/releases/download/master/${name}_linux_mipsle") +checksums=('SKIP') + +sources_s390x=("https://github.com/patrickvane/${name}/releases/download/master/${name}_linux_s390x") +checksums=('SKIP') + +prepare() { + cd "${srcdir}" +} + +package() { + install -Dm755 ./${name}_$GOOS_$GOARCH/ "${pkgdir}/usr/bin/shfmt" +}