alr-repo/shfmt-git/lure.sh

23 lines
503 B
Bash

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=("git+https://github.com/patrickvane/shfmt.git")
checksums=('SKIP')
build() {
cd "$srcdir/shfmt/cmd/shfmt"
go build
}
package() {
install -Dm755 "$srcdir/shfmt/cmd/shfmt/shfmt" "${pkgdir}/usr/bin/shfmt"
}