aboutsummaryrefslogtreecommitdiffstats
path: root/community/kasync/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/kasync/APKBUILD')
-rw-r--r--community/kasync/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/kasync/APKBUILD b/community/kasync/APKBUILD
new file mode 100644
index 0000000000..233c71d400
--- /dev/null
+++ b/community/kasync/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=kasync
+pkgver=0.3.0
+pkgrel=0
+pkgdesc="C++ library for controlling asynchronous tasks"
+arch="all !armhf" # qtdeclarative
+url="https://community.kde.org/KDE_PIM"
+license="LGPL-2.0-or-later AND GPL-2.0-or-later"
+depends_dev="qt5-qtbase-dev"
+makedepends="$depends_dev extra-cmake-modules"
+source="https://download.kde.org/unstable/kasync/$pkgver/src/kasync-$pkgver.tar.xz"
+subpackages="$pkgname-dev"
+
+build() {
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ cmake --build build
+}
+
+check() {
+ cd build
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --build build --target install
+}
+sha512sums="a521862bafdff2931a3f01ef4393c6ae8f3c4655bb58dc2ddb4fde5f443d67b1a23d0c21491b2099ad6dae53d8894588b49299c45d334956b36ccedf94b17f9d kasync-0.3.0.tar.xz"