blob: 479dfa443b836e0a893505215ae5860bdf4752b0 (
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
33
34
|
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=dasel
pkgver=1.22.1
pkgrel=2
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="
5de312a1aa5bab986b0b076c65a0ee1c7ffda8b080b2cb74416c89164b89b820e1d24f7b3fdbbe7e0084edfbf574722d5d2bd016c73a1f75da484e585df94f8e dasel-1.22.1.tar.gz
"
|