From a96175dc8462888795933324f541e862e3f06c26 Mon Sep 17 00:00:00 2001
From: Danny Rawlins <monster.romster@gmail.com>
Date: Sun, 4 Aug 2019 22:24:02 +1000
Subject: [PATCH] jq-32: initial import

---
 jq-32/.32bit     |  0
 jq-32/.footprint | 14 ++++++++++++++
 jq-32/.signature |  5 +++++
 jq-32/Pkgfile    | 26 ++++++++++++++++++++++++++
 4 files changed, 45 insertions(+)
 create mode 100644 jq-32/.32bit
 create mode 100644 jq-32/.footprint
 create mode 100644 jq-32/.signature
 create mode 100644 jq-32/Pkgfile

diff --git a/jq-32/.32bit b/jq-32/.32bit
new file mode 100644
index 00000000..e69de29b
diff --git a/jq-32/.footprint b/jq-32/.footprint
new file mode 100644
index 00000000..e532c117
--- /dev/null
+++ b/jq-32/.footprint
@@ -0,0 +1,14 @@
+drwxr-xr-x	root/root	usr/
+drwxr-xr-x	root/root	usr/lib32/
+-rw-r--r--	root/root	usr/lib32/libjq.a
+-rwxr-xr-x	root/root	usr/lib32/libjq.la
+lrwxrwxrwx	root/root	usr/lib32/libjq.so -> libjq.so.1.0.4
+lrwxrwxrwx	root/root	usr/lib32/libjq.so.1 -> libjq.so.1.0.4
+-rwxr-xr-x	root/root	usr/lib32/libjq.so.1.0.4
+-rw-r--r--	root/root	usr/lib32/libonig.a
+-rwxr-xr-x	root/root	usr/lib32/libonig.la
+lrwxrwxrwx	root/root	usr/lib32/libonig.so -> libonig.so.4.0.0
+lrwxrwxrwx	root/root	usr/lib32/libonig.so.4 -> libonig.so.4.0.0
+-rwxr-xr-x	root/root	usr/lib32/libonig.so.4.0.0
+drwxr-xr-x	root/root	usr/lib32/pkgconfig/
+-rw-r--r--	root/root	usr/lib32/pkgconfig/oniguruma.pc
diff --git a/jq-32/.signature b/jq-32/.signature
new file mode 100644
index 00000000..187c6b65
--- /dev/null
+++ b/jq-32/.signature
@@ -0,0 +1,5 @@
+untrusted comment: verify with /etc/ports/compat-32.pub
+RWSwxGo/zH7eXbA+Q6cRR5I5G8N8zY+HbVszy7glad2PvmFA80sgzJwO3xwFDVTOf9Bp2qts+4M6nX6HnrJ6KOiLqZK/BVmgyww=
+SHA256 (Pkgfile) = 7c6cd16720c5d874f44c484bbea48570afb553c3d0309777d1eadd3c7e9dc691
+SHA256 (.footprint) = 60e27009a44029624afe53e16c3070f7b174f9b33b07aec522513bb63704b165
+SHA256 (jq-1.6.tar.gz) = 5de8c8e29aaa3fb9cc6b47bb27299f271354ebb72514e3accadc7d38b5bbaa72
diff --git a/jq-32/Pkgfile b/jq-32/Pkgfile
new file mode 100644
index 00000000..2da0a848
--- /dev/null
+++ b/jq-32/Pkgfile
@@ -0,0 +1,26 @@
+# Description: Lightweight and flexible command-line JSON processor
+# URL: https://stedolan.github.io/jq/
+# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
+# Depends on: jq
+
+name=jq-32
+version=1.6
+release=1
+source=(https://github.com/stedolan/jq/releases/download/jq-$version/jq-$version.tar.gz)
+
+build() {
+	cd jq-$version
+
+	autoreconf -i modules/oniguruma
+
+	./configure \
+		--prefix=/usr \
+		--libdir=/usr/lib32 \
+		--disable-maintainer-mode \
+		--with-oniguruma=builtin \
+		--disable-gtk-doc
+
+	make
+	make DESTDIR=$PKG install
+	rm -r $PKG/usr/{bin,include,share}
+}