Files
alr-repo/shfmt-git/alr.sh

53 lines
1.3 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name='shfmt-git'
version='r20251006.a995a2b9'
release='1'
desc='A shell formatter. Supports POSIX Shell, Bash, and mksh (Git-version)'
desc_ru='Форматировщик скриптов оболочки с поддержкой POSIX Shell, Bash и mksh (Git-версия)'
homepage='https://github.com/patrickvane/shfmt'
maintainer='Evgeny Khramov <xpamych@yandex.ru>'
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
architectures=('all')
license=('BSD-3-Clause license')
provides=('shfmt')
conflicts=('shtmt')
deps=('glibc')
deps_alt=('glibc')
deps_arch=('glibc')
deps_debian=('libc6')
deps_fedora=("${deps[@]}")
deps_redos=("${deps_fedora[@]}")
deps_rhel=("${deps_fedora[@]}")
deps_rosa=("${deps_fedora[@]}")
deps_alpine=('musl')
build_deps=('go')
build_deps_alt=('go')
build_deps_arch=('go')
build_deps_debian=('golang-go')
build_deps_fedora=("${build_deps[@]}")
build_deps_redos=("${build_deps_fedora[@]}")
build_deps_rhel=("${build_deps_fedora[@]}")
build_deps_rosa=("${build_deps_fedora[@]}")
build_deps_alpine=('go')
sources=("git+https://github.com/patrickvane/shfmt.git")
checksums=('SKIP')
version() {
cd "$srcdir/${provides}"
git-version
}
build() {
cd "$srcdir/shfmt/cmd/shfmt"
go build
}
package() {
install -Dm755 "$srcdir/shfmt/cmd/shfmt/shfmt" "${pkgdir}/usr/bin/shfmt"
}
files() {
files-find-bin
}