Subject: [PATCH] testing/libjsmn-dev: new aport

From: wsh <[email-masked]>
Date: Tue, 11 Jan 2022 19:14:52 +0000

From ba3c1216a34a3e8e234989863eede78d100be67b Mon Sep 17 00:00:00 2001
From: washcloth <[email-masked]>
Date: Tue, 11 Jan 2022 18:02:38 +0000
Subject: [PATCH] testing/libjsmn-dev: new aport
To: [email-masked]

https://zserge.com/jsmn/
Minimalistic JSON parser/tokenizer in C. It can be easily integrated
into resource-limited or embedded projects
---
 testing/libjsmn-dev/APKBUILD | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 testing/libjsmn-dev/APKBUILD

diff --git a/testing/libjsmn-dev/APKBUILD b/testing/libjsmn-dev/APKBUILD
new file mode 100644
index 0000000000..5800385ed2
--- /dev/null
+++ b/testing/libjsmn-dev/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: washcloth <[email-masked]>
+# Maintainer: washcloth <[email-masked]>
+pkgname=libjsmn-dev
+_pkgnolib=jsmn
+pkgver=1.1.0
+pkgrel=0
+pkgdesc="Minimalistic JSON parser/tokenizer in C. It can be easily
integrated into resource-limited or embedded projects"
+url="https://zserge.com/jsmn/"
+arch="noarch"
+license="MIT"
+source="$pkgname-$pkgver.tar.gz::https://github.com/zserge/jsmn/archive/refs/tags/v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgnolib-$pkgver"
+
+build() {
+    # Replace with proper build command(s)
+    :
+}
+
+check() {
+    # Replace with proper check command(s)
+    make
+}
+
+package() {
+    # Replace with proper package command(s)
+    mkdir -p $pkgdir/usr/include/
+    cp $builddir/jsmn.h $pkgdir/usr/include/jsmn.h
+}
+
+sha512sums="
+474fa44740a4fae8389534ad08fe0e11ed3ba54cbedbce39a720984da4d20a21176f6abd1633ff2601a9b19421fd2f88320151c520764b4b05f73ed8abda76aa
 libjsmn-dev-1.1.0.tar.gz
+"
-- 
2.34.1