42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'kf6-sonnet'
|
|
pkgname=kf6-sonnet
|
|
version=6.3.0
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="$(vopt_bool designerplugin BUILD_DESIGNERPLUGIN)
|
|
-DKDE_INSTALL_QMLDIR=lib/qt6/qml
|
|
-DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
|
|
hostmakedepends="extra-cmake-modules qt6-tools qt6-base
|
|
qt6-declarative-host-tools"
|
|
makedepends="qt6-declarative-devel aspell-devel hunspell-devel"
|
|
short_desc="Spelling framework for Qt"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://invent.kde.org/frameworks/sonnet"
|
|
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
|
|
checksum=6b44dd00ceaa77c3dc9f05f82ca23791cecd887820889cdf8ffc24b384974c7e
|
|
|
|
build_options="designerplugin"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="designerplugin"
|
|
fi
|
|
|
|
if [ "$build_option_designerplugin" ]; then
|
|
makedepends+=" qt6-tools-devel"
|
|
nocross="yes"
|
|
fi
|
|
|
|
kf6-sonnet-devel_package() {
|
|
depends="$makedepends ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_designerplugin" ]; then
|
|
vmove usr/lib/qt6/plugins/designer
|
|
fi
|
|
}
|
|
}
|