aboutsummaryrefslogtreecommitdiffstats
path: root/community/parley/APKBUILD
blob: 8dab81aaae1e2984d53a8844f0cdb0ac221fcfc9 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=parley
pkgver=20.12.1
pkgrel=0
arch="all !ppc64le !s390x !armhf !mips !mips64" # Limited by qt5-qtwebengine
url="https://kde.org/applications/education/org.kde.parley"
pkgdesc="Vocabulary Trainer"
license="GPL-2.0-or-later AND GFDL-1.2-only"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtmultimedia-dev qt5-qtwebengine-dev kdoctools-dev kcoreaddons-dev kconfig-dev kcrash-dev ki18n-dev kio-dev knewstuff-dev kross-dev sonnet-dev kcmutils-dev kxmlgui-dev knotifications-dev libkeduvocdocument-dev libxslt-dev libxml2-dev"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/release-service/$pkgver/src/parley-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

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

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="19ecf6999f189b4dabdab81e046e402a5cc836ff2ed32b49e0ab7f7be87304e88e66dcefb40ab21a7b60bdd9eab0778a18a69b2f49400b34b85c1b5e0f8d5e52  parley-20.12.1.tar.xz"