aboutsummaryrefslogtreecommitdiffstats
path: root/community/oq/APKBUILD
blob: 829a0e30aaf3d97f81f8cbadd9ba66c39fef3bf9 (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=oq
pkgver=1.0.2
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="e3a1fc839c85b00ce8acfff971c6b342e4e34a5fdf50facb7860eaea45a742355a99e0f0477af2d9563c673fdafc79e0ffb3b7c616f9c303be4f52a8c649e454  oq-1.0.2.tar.gz"