изменение на shfmt-git

This commit is contained in:
2023-01-08 12:12:29 +03:00
parent ddbd5d1d11
commit dca338fea5
2 changed files with 22 additions and 42 deletions

22
shfmt-git/lure.sh Normal file
View File

@ -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="Евгений Храмов <xpamych@yandex.ru>"
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"
}

View File

@ -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="Евгений Храмов <xpamych@yandex.ru>"
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"
}