aports/community/kxmlgui/APKBUILD
Bart Ribbers e2a803639a community/kxmlgui: disable Python bindings on riscv64
py3-shiboken6 and pyside6-dev are not available on that architecture.
2025-05-09 08:29:46 +00:00

82 lines
1.7 KiB
Text

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-frameworks
maintainer="team/kde <bribbers@disroot.org>"
pkgname=kxmlgui
pkgver=6.13.0
pkgrel=1
pkgdesc="User configurable main windows"
# armhf blocked by qt6-qtdeclarative -> ki18n, qt6-qtmultimedia -> ktextwidgets
arch="all !armhf"
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-only AND LGPL-2.1-or-later"
depends_dev="
attica-dev
kconfig-dev
kconfigwidgets-dev
kcoreaddons-dev
kglobalaccel-dev
ki18n-dev
kiconthemes-dev
kitemviews-dev
ktextwidgets-dev
kwidgetsaddons-dev
qt6-qtbase-dev
"
makedepends="$depends_dev
doxygen
extra-cmake-modules
qt6-qttools-dev
samurai
"
checkdepends="
mesa-dri-gallium
xvfb-run
"
subpackages="
$pkgname-dev
$pkgname-doc
$pkgname-lang
"
case "$CARCH" in
riscv64) ;;
*)
makedepends="$makedepends
py3-build
py3-setuptools
py3-shiboken6
pyside6-dev
python3-dev
"
subpackages="$subpackages
py3-$pkgname:_py3
"
;;
esac
_repo_url="https://invent.kde.org/frameworks/kxmlgui.git"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kxmlgui-$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() {
# kxmlgui_unittest, ktoolbar_unittest and ktooltiphelper_unittest are broken
LC_ALL=C xvfb-run ctest --test-dir build -E '(kxmlgui|ktoolbar|ktooltiphelper)_unittest'
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
_py3() {
amove usr/lib/python*
}
sha512sums="
bbe8089958399cdc8e9908dd9655094228cfff4132bcc5ccbe9e493385c6d044314170fc14f13f40be3dd415e6c9235973a924b19d789983056c0ba074d3976d kxmlgui-6.13.0.tar.xz
"