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

51 lines
1.7 KiB
Bash

# Template file for 'kf6-knotifications'
# group=kde-frameworks
pkgname=kf6-knotifications
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
$(vopt_bool python BUILD_PYTHON_BINDINGS)"
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
qt6-declarative-host-tools pkg-config kf6-kconfig
$(vopt_if python "python3-build python3-setuptools shiboken6 llvm${_llvmver}")"
makedepends="kf6-kconfig-devel libcanberra-devel
qt6-declarative-devel qt6-base-devel qt6-tools-devel
$(vopt_if python 'libshiboken6-devel libpyside6-devel python3-devel')"
short_desc="KDE Desktop notifications"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
homepage="https://invent.kde.org/frameworks/knotifications"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=883e0139fcbc692070287e47de5368c78eb91c8bdbb52fb6f8398183f6aace8f
# 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-knotifications-devel_package() {
depends="${sourcepkg}>=${version}_${revision} qt6-base-devel
libcanberra-devel kf6-kconfig-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}