summaryrefslogtreecommitdiff
path: root/user/libqmatrixclient/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-25 00:26:47 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-25 00:26:47 -0500
commit5b91dcc065cbce17b1d6bba5e46cfca4174c92e5 (patch)
treeaac941153263560193088c5d993d547836587904 /user/libqmatrixclient/APKBUILD
parenta59efc211bdcc9bf285fe66ae6876586a3dfb132 (diff)
downloadpackages-5b91dcc065cbce17b1d6bba5e46cfca4174c92e5.tar.gz
packages-5b91dcc065cbce17b1d6bba5e46cfca4174c92e5.tar.bz2
packages-5b91dcc065cbce17b1d6bba5e46cfca4174c92e5.tar.xz
packages-5b91dcc065cbce17b1d6bba5e46cfca4174c92e5.zip
user/libqmatrixclient: new package
Diffstat (limited to 'user/libqmatrixclient/APKBUILD')
-rw-r--r--user/libqmatrixclient/APKBUILD42
1 files changed, 42 insertions, 0 deletions
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 <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+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"