aboutsummaryrefslogtreecommitdiffstats
path: root/testing/oq/APKBUILD
blob: 67750afa8f57aa92bb9762f229eaf049f3b239b8 (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
29
30
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=oq
pkgver=0.2.1
pkgrel=0
pkgdesc="A portable jq wrapper with support of other formats than JSON"
url="https://github.com/blacksmoke16/oq"
# arch="x86_64 aarch64"  # limited by Crystal
# `gcc "${@}" -o '/home/buildozer/aports/testing/oq/src/oq-0.2.1/bin/oq'  -rdynamic  -lyaml -lxml2 -lpcre -lm /usr/lib/libgc.a -lpthread /usr/lib/crystal/core/ext/libcrystal.a -levent -lrt -L/usr/lib -L/usr/local/lib`
arch="x86_64 aarch64"  # 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 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="0b88d593d509bbfb525adba8c85b8534d507d46d23044f5ba5a7adab64cda87d26f40c004518f10aca6f549e90a115a04c8d83f6a71d5e4ea2a4313e7e6f5552  oq-0.2.1.tar.gz"