35 lines
1005 B
Bash
35 lines
1005 B
Bash
# Template file for 'sonnet'
|
|
pkgname=sonnet
|
|
version=5.82.0
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DBUILD_TESTING=ON"
|
|
hostmakedepends="kcoreaddons extra-cmake-modules"
|
|
makedepends="qt5-devel qt5-tools-devel aspell-devel hunspell-devel"
|
|
short_desc="KDE Multi-language spell checker"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://invent.kde.org/frameworks/sonnet"
|
|
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=8e0a9a80a70def5c992c25d50cbeaa38f1655da83e80b6aae8847d77289111c2
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-host-tools qt5-tools-devel sonnet"
|
|
configure_args+=" -DPARSETRIGRAMS_EXECUTABLE=/usr/bin/parsetrigrams"
|
|
fi
|
|
|
|
pre_check() {
|
|
export QT_QPA_PLATFORM=offscreen
|
|
}
|
|
|
|
sonnet-devel_package() {
|
|
short_desc+=" - development"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/qt5/mkspecs
|
|
vmove usr/lib/cmake
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|