aboutsummaryrefslogtreecommitdiffstats
path: root/community/oq/APKBUILD
blob: c7be8d0e393f79ea2130ac976cfbca9e397bb26f (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.1.0
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="42410c95d574a6593820b0b6461a05833e29ca07f5d07e42d2bc332e6b972816f5e565a2fe0f4794ceaf59ac2cf83a642bf9f2c09fcce4663337fef113fd4c4a  oq-1.1.0.tar.gz"