33 lines
983 B
Bash
33 lines
983 B
Bash
# Template file for 'dasel'
|
|
pkgname=dasel
|
|
version=2.7.0
|
|
revision=1
|
|
build_style=go
|
|
build_helper=qemu
|
|
go_import_path=github.com/tomwright/dasel/v2
|
|
go_package="${go_import_path}/cmd/dasel"
|
|
go_ldflags="-X ${go_import_path}/internal.Version=${version}"
|
|
short_desc="Query and modify data structures using selector strings"
|
|
maintainer="Daniel Eyßer <daniel.eysser@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://daseldocs.tomwright.me/"
|
|
changelog="https://raw.githubusercontent.com/TomWright/dasel/master/CHANGELOG.md"
|
|
distfiles="https://github.com/TomWright/dasel/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=93546e10971ca74c3192940fe9435b48368cefa677cef8a7532b214c6d8b6c39
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
|
|
mkdir manpages
|
|
vtargetrun ${DESTDIR}/usr/bin/dasel man -o manpages
|
|
|
|
for f in manpages/*; do
|
|
vman ${f}
|
|
done
|
|
|
|
for shell in bash fish zsh; do
|
|
vtargetrun ${DESTDIR}/usr/bin/dasel completion ${shell} > completions.${shell}
|
|
vcompletion completions.${shell} ${shell}
|
|
done
|
|
}
|