~alpine/aports

testing/nlohmann-json: upgrade to 3.7.0 v1 PROPOSED

Bart Ribbers: 4
 testing/nlohmann-json: upgrade to 3.7.0
 testing/mtxclient: new aport
 testing/lmdbxx: new aport
 testing/tweeny: new aport

 4 files changed, 94 insertions(+), 14 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/2922/mbox | git am -3
Learn more about email & git

[PATCH 1/4] testing/nlohmann-json: upgrade to 3.7.0 Export this patch

---
 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 <dankamongmen@gmail.com>
# 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

[PATCH 2/4] testing/mtxclient: new aport Export this patch

---
 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 <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
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

[PATCH 3/4] testing/lmdbxx: new aport Export this patch

---
 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 <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
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

[PATCH 4/4] testing/tweeny: new aport Export this patch

---
 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 <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
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