diff options
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 41 |
3 files changed, 46 insertions, 24 deletions
@@ -1,16 +1,27 @@ pkgbase = shfmt-bin - pkgdesc = Format shell programs (pre-compiled static binary) - pkgver = 2.5.1 + pkgdesc = Format shell programs + pkgver = 3.5.0 pkgrel = 1 url = https://github.com/mvdan/sh arch = x86_64 + arch = i686 + arch = armv7h + arch = aarch64 license = BSD + depends = glibc provides = shfmt conflicts = shfmt - source_x86_64 = https://github.com/mvdan/sh/releases/download/v2.5.1/shfmt_v2.5.1_linux_amd64 - source_x86_64 = https://raw.githubusercontent.com/mvdan/sh/v2.5.1/LICENSE - sha256sums_x86_64 = fce24cfa408362e6802f1cec9b2b9f92fb865eb8ae1233ee2874b5d0c66b2f91 - sha256sums_x86_64 = SKIP + noextract = shfmt-bin-3.5.0.LICENSE + noextract = shfmt-bin-3.5.0.shfmt + source = shfmt-bin-3.5.0.LICENSE::https://raw.githubusercontent.com/mvdan/sh/v3.5.0/LICENSE + sha256sums = ce63850f77649f00d1394045e2794ffb09a5596beabac51c9548edd958845d7c + source_x86_64 = shfmt-bin-3.5.0.shfmt::https://github.com/mvdan/sh/releases/download/v3.5.0/shfmt_v3.5.0_linux_amd64 + sha256sums_x86_64 = 8feea043364a725dfb69665432aee9e85b84c7f801a70668650e8b15452f6574 + source_i686 = shfmt-bin-3.5.0.shfmt::https://github.com/mvdan/sh/releases/download/v3.5.0/shfmt_v3.5.0_linux_386 + sha256sums_i686 = 1e42df61a29cda969a287f598d6f1a789a23fe8ddb0485e785b6cdf57234f60e + source_armv7h = shfmt-bin-3.5.0.shfmt::https://github.com/mvdan/sh/releases/download/v3.5.0/shfmt_v3.5.0_linux_arm + sha256sums_armv7h = e6d059da725f5dfacb663505efa4f9527a3178127f46b2dfb2479f7b8b721820 + source_aarch64 = shfmt-bin-3.5.0.shfmt::https://github.com/mvdan/sh/releases/download/v3.5.0/shfmt_v3.5.0_linux_arm64 + sha256sums_aarch64 = 2dec40f18622873dd3bf84fda17f43a0ae93b5305ead909dc0e91f6479d359c6 pkgname = shfmt-bin - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f71c635dafda --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO @@ -1,27 +1,34 @@ -# Maintainer: Daniel Martà <mvdan@mvdan.cc> +# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com> +# Contributor: Daniel Martà <mvdan@mvdan.cc> pkgname=shfmt-bin -_pkg=sh -_name=shfmt -pkgver=2.5.1 +_pkgname=shfmt +pkgver=3.5.0 pkgrel=1 -pkgdesc="Format shell programs (pre-compiled static binary)" -url="https://github.com/mvdan/${_pkg}" +pkgdesc="Format shell programs" +arch=('x86_64' 'i686' 'armv7h' 'aarch64') +url="https://github.com/mvdan/sh" license=('BSD') +depends=('glibc') provides=('shfmt') conflicts=('shfmt') -arch=('x86_64') -source_x86_64=( - "https://github.com/mvdan/sh/releases/download/v${pkgver}/shfmt_v${pkgver}_linux_amd64" - "https://raw.githubusercontent.com/mvdan/sh/v${pkgver}/LICENSE" -) -sha256sums_x86_64=( - '37fd1f66d7bf9c48130bbc50a3747750c6e3b202c404ca4a5941f81b9efd9b97' - 'SKIP' -) +source=("$pkgname-$pkgver.LICENSE::https://raw.githubusercontent.com/mvdan/sh/v$pkgver/LICENSE") +_source_base="$pkgname-$pkgver.$_pkgname::$url/releases/download/v$pkgver" +source_x86_64=("$_source_base/${_pkgname}_v${pkgver}_linux_amd64") +source_i686=("$_source_base/${_pkgname}_v${pkgver}_linux_386") +source_armv7h=("$_source_base/${_pkgname}_v${pkgver}_linux_arm") +source_aarch64=("$_source_base/${_pkgname}_v${pkgver}_linux_arm64") + +noextract=("$pkgname-$pkgver.LICENSE" "$pkgname-$pkgver.$_pkgname") + +sha256sums=('ce63850f77649f00d1394045e2794ffb09a5596beabac51c9548edd958845d7c') +sha256sums_x86_64=('8feea043364a725dfb69665432aee9e85b84c7f801a70668650e8b15452f6574') +sha256sums_i686=('1e42df61a29cda969a287f598d6f1a789a23fe8ddb0485e785b6cdf57234f60e') +sha256sums_armv7h=('e6d059da725f5dfacb663505efa4f9527a3178127f46b2dfb2479f7b8b721820') +sha256sums_aarch64=('2dec40f18622873dd3bf84fda17f43a0ae93b5305ead909dc0e91f6479d359c6') package() { - install -Dm755 shfmt_v${pkgver}_linux_amd64 "${pkgdir}/usr/bin/${_name}" - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm755 "$pkgname-$pkgver.$_pkgname" "$pkgdir/usr/bin/$_pkgname" + install -Dm644 "$pkgname-$pkgver.LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |