From 44d7d2b2882e270cebf8385ac60827955e1e0987 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 9 Jun 2022 00:06:19 -0500 Subject: user/libqaccessibilityclient: New package --- user/libqaccessibilityclient/APKBUILD | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 user/libqaccessibilityclient/APKBUILD (limited to 'user') 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 +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" -- cgit v1.2.3-70-g09d2