From 5b91dcc065cbce17b1d6bba5e46cfca4174c92e5 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 25 Jul 2018 00:26:47 -0500 Subject: user/libqmatrixclient: new package --- user/libqmatrixclient/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 user/libqmatrixclient/APKBUILD diff --git a/user/libqmatrixclient/APKBUILD b/user/libqmatrixclient/APKBUILD new file mode 100644 index 000000000..ddd5f3047 --- /dev/null +++ b/user/libqmatrixclient/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=libqmatrixclient +pkgver=0.3.0.2 +pkgrel=0 +pkgdesc="Library to interface with Matrix chat systems using Qt 5" +url="https://matrix.org/docs/projects/sdk/libqmatrixclient.html" +arch="all" +license="LGPL-2.1+" +depends="" +depends_dev="qt5-qtbase-dev" +makedepends="$depends_dev cmake" +subpackages="$pkgname-dev" +source="libqmatrixclient-$pkgver.tar.gz::https://github.com/QMatrixClient/libqmatrixclient/archive/v$pkgver.tar.gz" + +build() { + cd "$builddir" + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="f650f50185070ce7d37dbb173c27c46adc45eb18ac3219d37b6f3eb275f23afa7dd8cb583721cd03c4e50cb7a19345f8c747acce097ba81b5f3d14a700c9d7c2 libqmatrixclient-0.3.0.2.tar.gz" -- cgit v1.2.3-70-g09d2