Files
horizon-packages/srcpkgs/kf6-kguiaddons/template
T

61 lines
1.9 KiB
Bash

# Template file for 'kf6-kguiaddons'
# group=kde-frameworks
pkgname=kf6-kguiaddons
version=6.29.0
revision=1
build_style=cmake
_llvmver=21
configure_args="-DKDE_INSTALL_QMLDIR=lib/qt6/qml
-DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins
-DKDE_INSTALL_QTMETATYPESDIR=lib/qt6/metatypes
$(vopt_bool python BUILD_PYTHON_BINDINGS)"
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
$(vopt_if python "shiboken6 python3-build python3-setuptools llvm${_llvmver}")
wayland-devel pkg-config qt6-declarative-host-tools"
makedepends="plasma-wayland-protocols wayland-devel
qt6-declarative-devel qt6-base-private-devel
$(vopt_if python 'libshiboken6-devel libpyside6-devel python3-devel')"
depends="kf6-kguiaddons-geo-uri-handler"
short_desc="Addons to QtGui"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kguiaddons"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=6d0c4a4ddc7d4833ae537b1bf146896beba76135ec4b8bcf2a9525e33e39b3a4
# stage builds
makedepends+=" kf6-base"
shlib_requires="KDE_Frameworks.${version%.*}"
build_options="python"
build_options_default="python"
if [ "$CROSS_BUILD" ]; then
configure_args+=" -DECM_SHIBOKEN_ARCH=$XBPS_CROSS_RUST_TARGET"
configure_args+=" -DSYSROOT_INCLUDE_DIRS=$XBPS_CROSS_BASE/usr/include"
fi
export LLVM_INSTALL_DIR=/usr/lib/llvm/${_llvmver}
case "$XBPS_TARGET_MACHINE" in
arm*) configure_args+=" -DSHIBOKEN_GENERATOR_EXTRA_FLAGS=--clang-option=-mfloat-abi=hard" ;;
esac
kf6-kguiaddons-geo-uri-handler_package() {
short_desc+=" - Geo URI handler"
pkg_install() {
vmove usr/share/applications
vmove usr/bin/kde-geo-uri-handler
}
}
kf6-kguiaddons-devel_package() {
depends="${sourcepkg}>=${version}_${revision} qt6-base-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/pkgconfig
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}