# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=oq pkgver=1.0.1 pkgrel=0 pkgdesc="A portable jq wrapper with support of other formats than JSON" url="https://github.com/blacksmoke16/oq" arch="x86_64" # limited by Crystal license="MIT" depends="jq" makedepends="crystal libxml2-dev yaml-dev" source="https://github.com/Blacksmoke16/oq/archive/v$pkgver/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { mkdir -p bin crystal build --release -o bin/oq src/oq_cli.cr } check() { crystal spec } package() { install -D -m 755 bin/oq "$pkgdir"/usr/bin/oq } sha512sums="499a0e44e03f34ec523e5b6d34d76c4ce03aac744de6b1429c6ae951e319b9cd9b8fa1fbeb5bfd993d24c33d5140ba2f99fd94fd5d6399de445f65db4d563838 oq-1.0.1.tar.gz"