void-packages/srcpkgs/sonnet/template
2017-07-19 14:31:42 +00:00

30 lines
970 B
Bash

# Template file for 'sonnet'
pkgname=sonnet
version=5.36.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules"
makedepends="qt5-devel qt5-tools-devel aspell-devel hunspell-devel"
short_desc="KDE Multi-language spell checker"
maintainer="Denis Revin <denis.revin@gmail.com>"
license="LGPL-2"
homepage="https://projects.kde.org/projects/frameworks/sonnet"
distfiles="http://download.kde.org/stable/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=accf0724615abf684258fa087e4166e803385ec4190f92c792fd16e8189366ed
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-tools-devel sonnet"
configure_args+=" -DPARSETRIGRAMS_EXECUTABLE=/usr/bin/parsetrigrams"
fi
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
}
}