aports/testing/dasel/APKBUILD
Michał Polański 317a37617b testing/dasel: new aport
Query and modify data structures using selector strings
https://daseldocs.tomwright.me/
2021-08-31 00:19:22 +02:00

35 lines
837 B
Plaintext

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=dasel
pkgver=1.20.0
pkgrel=0
pkgdesc="Query and modify data structures using selector strings"
url="https://daseldocs.tomwright.me/"
license="MIT"
arch="all"
makedepends="go"
source="https://github.com/TomWright/dasel/archive/v$pkgver/dasel-$pkgver.tar.gz"
export GOPATH="$srcdir"
export GOFLAGS="$GOFLAGS -trimpath -modcacherw"
export CGO_ENABLED=0
build() {
go build \
-ldflags "-X github.com/tomwright/dasel/internal.Version=$pkgver" \
-v \
./cmd/dasel
}
check() {
go test ./...
}
package() {
install -Dm755 dasel "$pkgdir"/usr/bin/dasel
}
sha512sums="
a3af5c6792f793b4b01104f63673cdb8aa4eae4c64477a4e99f47625910b5702138be7b569f283d5a1e165d3e0dfe7d188642e9633975b2e55b5d50e096f9fd8 dasel-1.20.0.tar.gz
"