summaryrefslogtreecommitdiff
path: root/user/libqaccessibilityclient/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/libqaccessibilityclient/APKBUILD')
-rw-r--r--user/libqaccessibilityclient/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/user/libqaccessibilityclient/APKBUILD b/user/libqaccessibilityclient/APKBUILD
new file mode 100644
index 000000000..b046cbaa5
--- /dev/null
+++ b/user/libqaccessibilityclient/APKBUILD
@@ -0,0 +1,40 @@
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libqaccessibilityclient
+pkgver=0.4.1
+pkgrel=0
+pkgdesc="KDE client-side accessibility library"
+url="https://www.kde.org/"
+arch="all"
+options="!check" # Requires running X11 session.
+license="LGPL-2.1+"
+depends="at-spi2-core"
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev"
+subpackages="$pkgname-dev"
+source="https://download.kde.org/stable/libqaccessibilityclient/libqaccessibilityclient-$pkgver.tar.xz"
+
+build() {
+ 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" \
+ -DBUILD_TESTING:BOOL=OFF \
+ ${CMAKE_CROSSOPTS} \
+ .
+ make
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="d5c168ff39f4bb67f18120eea50f8e02a85d464a5bb6479c48dfdb02ea9bf0cc379cbed4da7d882b718a1e1723d3a00528fcb26903b617b43029fde25e82cb3c libqaccessibilityclient-0.4.1.tar.xz"