summaryrefslogblamecommitdiff
path: root/user/libqaccessibilityclient/APKBUILD
blob: b046cbaa54451ced56c1baf46a9a2454d0fccc79 (plain) (tree)







































                                                                                                                                                                                   
# 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"