Subject: [PATCH 1/4] testing/nlohmann-json: upgrade to 3.7.0

From: Bart Ribbers <[email-masked]>
Date: Sun, 18 Aug 2019 16:26:35 +0200

---
 testing/nlohmann-json/APKBUILD | 29 +++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 deletions(-)

diff --git a/testing/nlohmann-json/APKBUILD b/testing/nlohmann-json/APKBUILD
index 01733cd9f6..b1dd0c6e23 100644
--- a/testing/nlohmann-json/APKBUILD
+++ b/testing/nlohmann-json/APKBUILD
@@ -1,34 +1,35 @@
 # Contributor: Nick Black <[email-masked]>
-# This is a headers-only implementaiton; there are no libraries.
+# Maintainer:
 pkgname=nlohmann-json
-pkgver=3.6.1
-pkgrel=1
+pkgver=3.7.0
+pkgrel=0
 pkgdesc="JSON for Modern C++"
 url="https://github.com/nlohmann/json"
 arch="noarch"
 license="MIT"
-makedepends="doxygen"
-subpackages="nlohmann-json-doc"
+makedepends="cmake doxygen graphviz"
+subpackages="$pkgname-dev $pkgname-doc"
 source="nlohmann-json-$pkgver.tar.gz::https://github.com/nlohmann/json/archive/v$pkgver.tar.gz"
 builddir="$srcdir/json-$pkgver"
 
 build() {
+	cmake \
+		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DCMAKE_INSTALL_LIBDIR=lib
+	make
 	make -C doc
 }
 
 check() {
-	if [ "$CARCH" != "s390x" ]; then make check-fast; fi
+	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
 }
 
 package() {
-	mkdir -p "$pkgdir/usr/include"
-	mv include/nlohmann "$pkgdir/usr/include"
-}
+	DESTDIR="$pkgdir" make install
 
-doc() {
-	cd "$builddir"
-	mkdir -p "$subpkgdir/usr/share/doc/nlohmann-json"
-	mv README.md doc/html "$subpkgdir/usr/share/doc/nlohmann-json"
+	mkdir -p "$pkgdir"/usr/share/doc/$pkgname
+	mv doc/html "$pkgdir"/usr/share/doc/$pkgname/
 }
 
-sha512sums="e0565ccdee34e89a6836a97f039c04a0bac445b44f6f323918ea424b34e4577688a4f4f72d5ef1ec0b53d159bfe87e8e9c97b70ef98231ea463f59f05e16eb2a  nlohmann-json-3.6.1.tar.gz"
+sha512sums="35510a0ee59d847ff9fcd4f4026ef936abb89675884fdd2db808f8349a55073206f764cd4f797deb1b6493ea0e04889505f49483e5b88798011dd5db87e7c87d  nlohmann-json-3.7.0.tar.gz"
-- 
2.21.0

---

From: Bart Ribbers <[email-masked]>
Date: Sun, 18 Aug 2019 16:26:36 +0200

---
 testing/mtxclient/APKBUILD | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 testing/mtxclient/APKBUILD

diff --git a/testing/mtxclient/APKBUILD b/testing/mtxclient/APKBUILD
new file mode 100644
index 0000000000..8b12b9d786
--- /dev/null
+++ b/testing/mtxclient/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Bart Ribbers <[email-masked]>
+# Maintainer: Bart Ribbers <[email-masked]>
+pkgname=mtxclient
+pkgver=0.2.1
+pkgrel=0
+pkgdesc="Client API library for Matrix, built on top of Boost.Asio"
+url="https://github.com/nheko-reborn/mtxclient"
+arch="all"
+license="MIT"
+depends_dev="nlohmann-json-dev openssl-dev zlib-dev olm-dev libsodium-dev boost-dev"
+makedepends="$depends_dev cmake gtest-dev"
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/nheko-reborn/$pkgname/archive/v$pkgver.tar.gz"
+options="!check" # Requires running Synapse instance
+
+build() {
+	cmake \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DCMAKE_INSTALL_LIBDIR=lib \
+		-DBUILD_LIB_EXAMPLES=OFF \
+		-DCMAKE_BUILD_TYPE=RelWithDebInfo
+	make
+}
+
+check() {
+	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+	DESTDIR="$pkgdir" make install
+}
+
+sha512sums="3362e9ae44ebeb22ac036ba2ac63682eeb97248754bf4b4029ce381d6d99501a94cd82a7b2e23aefe902b4c43389ee48e5e465679ce7fbebbf4f4d06cbc19659  mtxclient-0.2.1.tar.gz"
-- 
2.21.0

---

From: Bart Ribbers <[email-masked]>
Date: Sun, 18 Aug 2019 16:26:37 +0200

---
 testing/lmdbxx/APKBUILD | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 testing/lmdbxx/APKBUILD

diff --git a/testing/lmdbxx/APKBUILD b/testing/lmdbxx/APKBUILD
new file mode 100644
index 0000000000..3b4acdbae6
--- /dev/null
+++ b/testing/lmdbxx/APKBUILD
@@ -0,0 +1,19 @@
+# Contributor: Bart Ribbers <[email-masked]>
+# Maintainer: Bart Ribbers <[email-masked]>
+pkgname=lmdbxx
+pkgver=0.9.14.0
+pkgrel=0
+pkgdesc="C++11 wrapper for the LMDB database library"
+url="https://lmdbxx.sourceforge.net"
+arch="noarch"
+license="Unlicense"
+makedepends="doxygen"
+# docs are available but require pandoc to be built which isn't packaged for Alpine
+source="$pkgname-$pkgver.tar.gz::https://github.com/drycpp/$pkgname/archive/$pkgver.tar.gz"
+options="!check"
+
+package() {
+	 make DESTDIR="$pkgdir" PREFIX=/usr install
+}
+
+sha512sums="7c1ee0378edeb658df8bd5efc09533db677bd3503d9fa37513ad6fda24f1fa1c6805e1902c5ae030b6612bc1c520be9711f02bce7b59b636fdace27c0374bce5  lmdbxx-0.9.14.0.tar.gz"
-- 
2.21.0

---

From: Bart Ribbers <[email-masked]>
Date: Sun, 18 Aug 2019 16:26:38 +0200

---
 testing/tweeny/APKBUILD | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 testing/tweeny/APKBUILD

diff --git a/testing/tweeny/APKBUILD b/testing/tweeny/APKBUILD
new file mode 100644
index 0000000000..111365f2d7
--- /dev/null
+++ b/testing/tweeny/APKBUILD
@@ -0,0 +1,27 @@
+# Contributor: Bart Ribbers <[email-masked]>
+# Maintainer: Bart Ribbers <[email-masked]>
+pkgname=tweeny
+pkgver=3
+pkgrel=0
+pkgdesc="A modern C++ tweening library"
+url="https://mobius3.github.io/tweeny"
+arch="noarch"
+license="MIT"
+options="!check" # no test suite
+makedepends="cmake doxygen"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/mobius3/$pkgname/archive/v$pkgver.tar.gz"
+
+build() {
+	cmake \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
+		-DTWEENY_BUILD_DOCUMENTATION=ON
+	make
+}
+
+package() {
+	DESTDIR="$pkgdir" make install
+}
+
+sha512sums="41f2562a0e55b0fd2c219fab384bf46f70432abb47953b5ac768a29b2ea7b790c6aa56fd44c1fef583f6fa2011010d7dd7e637bcd2d8a9be5c9638a7f2ce7436  tweeny-3.tar.gz"
-- 
2.21.0