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

47 lines
1.5 KiB
Bash

# Template file for 'kf6-kstatusnotifieritem'
# group=kde-frameworks
pkgname=kf6-kstatusnotifieritem
version=6.29.0
revision=1
build_style=cmake
_llvmver=21
configure_args="$(vopt_bool python BUILD_PYTHON_BINDINGS)"
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
$(vopt_if python "python3-build python3-setuptools shiboken6 llvm${_llvmver}")"
makedepends="kf6-kwindowsystem-devel qt6-base-devel
$(vopt_if python 'libshiboken6-devel libpyside6-devel python3-devel')"
short_desc="Implementation of Status Notifier Items"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/kstatusnotifieritem"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=b2c9375edc219425b2ffc90b443e686fc48699a0ee0408b6a4e55a5f345dde2e
# 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-kstatusnotifieritem-devel_package() {
depends="${sourcepkg}>=${version}_${revision} qt6-base-devel
kf6-kwindowsystem-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}