# Maintainer: Jonathan Apodaca repology_pkgname=yq-mikefarah pkgname=yq pkgver=4.44.5 pkgrel=1 epoch=1 pkgdesc="yq is a portable command-line YAML, JSON, XML, CSV and properties processor" arch=(amd64 arm64 arm32 i386 i686) url="https://mikefarah.gitbook.io/yq/" license=('MIT') makedepends=(golang-go gzip pandoc) source=("https://github.com/mikefarah/$pkgname/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('1505367f4a6c0c4f3b91c6197ffed4112d29ef97c48d0b5e66530cfa851d3f0e') build() { cd "yq-$pkgver" go build scripts/generate-man-page-md.sh scripts/generate-man-page.sh gzip -f yq.1 } package() { cd "yq-$pkgver" install -D yq "${pkgdir}/usr/bin/yq" install -D yq.1.gz "${pkgdir}/usr/share/man/man1/yq.1.gz" }