# Template file for 'xq'
pkgname=xq
version=1.2.4
revision=2
build_style=go
go_import_path=github.com/sibprogrammer/xq
short_desc="Command-line XML and HTML beautifier and content extractor"
maintainer="Emil Miler <em@0x45.cz>"
license="MIT"
homepage="https://github.com/sibprogrammer/xq"
distfiles="https://github.com/sibprogrammer/xq/archive/refs/tags/v${version}.tar.gz"
checksum=5044de231d2426c236618e52d3d2e59cd45b008e55d5dfa8df97c3269c64354d

do_check() {
	go test -covermode=atomic -v ./...
}

post_install() {
	mv "$DESTDIR/usr/bin/"{xq,xq-go}
	vman docs/xq.man xq-go.1
	vlicense LICENSE
}
