aboutsummaryrefslogtreecommitdiffstats
path: root/community/sonnet/APKBUILD
blob: 4c035da22eafa3bf8af97e7a7366fce286bf0918 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=sonnet
pkgver=5.76.0
pkgrel=0
pkgdesc="Spelling framework for Qt5"
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-only"
depends="hunspell"
depends_dev="qt5-qtbase"
makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev doxygen hunspell-dev"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/sonnet-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_QCH=ON
	cmake --build build
}

check() {
	cd build

	# sonnet-test_autodetect fails to detect a speller backend
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "sonnet-test_autodetect"
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="b012f5d6e85588d510ab795bcfaf1938b5f4b5c0a02bb2c04814d3878dfcc6968e1c494e92fd793b5ac096fe6c2547f0d27325dfe17aa424cb1346ce63e3440e  sonnet-5.76.0.tar.xz"