[arch-commits] Commit in (cjson cjson/repos cjson/trunk cjson/trunk/PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Fri Jan 1 20:59:41 UTC 2021
Date: Friday, January 1, 2021 @ 20:59:40
Author: jelle
Revision: 802862
Add cjson new dep of mosquitto
Added:
cjson/
cjson/repos/
cjson/trunk/
cjson/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Added: cjson/trunk/PKGBUILD
===================================================================
--- cjson/trunk/PKGBUILD (rev 0)
+++ cjson/trunk/PKGBUILD 2021-01-01 20:59:40 UTC (rev 802862)
@@ -0,0 +1,27 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=cjson
+pkgver=1.7.14
+pkgrel=1
+pkgdesc="Ultralightweight JSON parser in ANSI C"
+arch=(x86_64)
+license=("MIT")
+makedepends=("cmake")
+url="https://github.com/DaveGamble/cJSON"
+source=("$pkgname-$pkgver.tar.gz::https://github.com/DaveGamble/cJSON/archive/v$pkgver.tar.gz")
+sha512sums=('8de1dedc123ed025a9cbe6764e5963eb0550f726d06a8f6bedfe05b84e852cd9c1587cd381669663073967f42be894a535ba239013f304ce544c3b15a6477c01')
+
+build() {
+ cmake -B build -S "cJSON-${pkgver}" -DENABLE_CJSON_UTILS=On -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
+ make -C build
+}
+
+check() {
+ make -C build check
+}
+
+package() {
+ make -C build DESTDIR="${pkgdir}" install
+ install -Dm644 "$srcdir/cJSON-$pkgver/LICENSE" \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list