From dca338fea565770fa55abadeaf3716758f66dcb3 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sun, 8 Jan 2023 12:12:29 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BD=D0=B0=20shfmt-git?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shfmt-git/lure.sh | 22 ++++++++++++++++++++++ shfmt/lure.sh | 42 ------------------------------------------ 2 files changed, 22 insertions(+), 42 deletions(-) create mode 100644 shfmt-git/lure.sh delete mode 100644 shfmt/lure.sh diff --git a/shfmt-git/lure.sh b/shfmt-git/lure.sh new file mode 100644 index 0000000..c9a1b7c --- /dev/null +++ b/shfmt-git/lure.sh @@ -0,0 +1,22 @@ +name='shfmt-git' +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/shfmt.git") +checksums=('SKIP') + +build() { + cd "$srcdir" + go build +} + +package() { + install -Dm755 ./shfmt/ "${pkgdir}/usr/bin/shfmt" +} diff --git a/shfmt/lure.sh b/shfmt/lure.sh deleted file mode 100644 index 8a105b7..0000000 --- a/shfmt/lure.sh +++ /dev/null @@ -1,42 +0,0 @@ -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}?~archive=false") -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" -}