blob: 5f59ef158f76b4c55ac1bfa14a53bac845a4aada (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Contributor: AsukaMinato
# Maintainer: tee < teeaur at duck dot com >
pkgname=gojq-bin
pkgver=0.12.16
pkgrel=1
pkgdesc="Pure Go implementation of jq"
arch=(x86_64 aarch64)
url="https://github.com/itchyny/gojq"
license=('MIT')
provides=(gojq)
conflicts=(gojq)
source_x86_64=($url/releases/download/v$pkgver/gojq_v${pkgver}_linux_amd64.tar.gz)
source_aarch64=($url/releases/download/v$pkgver/gojq_v${pkgver}_linux_arm64.tar.gz)
sha256sums_x86_64=('03a940f0584174afe3c50174b249067ffac93afbaa160844facda02b1b249b96')
sha256sums_aarch64=('7bbe143f142792d0974b7051a56f5e3d14ffcf00ecc21d7b194f129368ea52df')
package() {
for f in *;
do
if [ -d "$f" ];
then
pushd "$f";
install -Dm644 LICENSE -t $pkgdir/usr/share/licenses/$pkgname/
install -Dm755 gojq -t $pkgdir/usr/bin
install -Dm644 _gojq -t $pkgdir/usr/share/zsh/site-functions/ # zsh comp https://unix.stackexchange.com/questions/607809/
install -Dm644 CREDITS CHANG* READ* -t $pkgdir/usr/share/doc/$pkgname/
fi
done
}
# vim:set noet sts=0 sw=4 ts=4 ft=PKGBUILD:
|