2024-07-13 08:20:00 +02:00

71 lines
1.9 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>
# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-frameworks
pkgname=kwindowsystem
pkgver=6.4.0
pkgrel=0
pkgdesc="Access to the windowing system"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://community.kde.org/Frameworks"
license="MIT AND (LGPL-2.1-only OR LGPL-3.0-only"
depends_dev="
libxrender-dev
plasma-wayland-protocols
qt6-qtwayland-dev
xcb-util-keysyms-dev
xcb-util-wm-dev
"
makedepends="$depends_dev
doxygen
extra-cmake-modules
qt6-qttools-dev
samurai
"
checkdepends="xvfb-run"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
_repo_url="https://invent.kde.org/frameworks/kwindowsystem.git"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kwindowsystem-$pkgver.tar.xz"
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_QCH=ON
cmake --build build
}
check() {
# kwindowsystem-kwindowinfox11test hangs
# kwindowsystem-kwindowsystemx11test, kwindowsystem-kwindowsystem_threadtest and kwindowsystem-netrootinfotestwm are broken
# kwindowsystem-netwininfotestwm is broken on s390x
local skipped_tests="kwindowsystem-("
local tests="
kwindowinfox11test
kwindowsystemx11test
kwindowsystem_threadtest
netrootinfotestwm
"
case "$CARCH" in
s390x) tests="$tests
netwininfotestwm
"
esac
for test in $tests; do
skipped_tests="$skipped_tests|$test"
done
skipped_tests="$skipped_tests)"
xvfb-run ctest --test-dir build --output-on-failure -E "$skipped_tests"
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
7d0483742a6eaf0ea1f8b674d250c3be7a76627e2b390c12d5d46be54d0492611610d508ea5db48d678fcff82a455078a7bd13555db539b912a49598c398088a kwindowsystem-6.4.0.tar.xz
"