aboutsummaryrefslogtreecommitdiffstats
path: root/community/knotes/APKBUILD
blob: d8ced8c33e20edbc220b278380d5500d70c5410c (plain)
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
37
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=knotes
pkgver=20.12.1
pkgrel=0
# armhf blocked by extra-cmake-modules
# mips, ppc64le and s390x blocked by kdepim-runtime
arch="all !armhf !ppc64le !s390x !mips !mips64"
url="https://kontact.kde.org/"
pkgdesc="Popup notes"
license="GPL-2.0-or-later AND LGPL-2.0-or-later AND GFDL-1.2-only"
depends="kdepim-runtime"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtx11extras-dev grantlee-dev kcompletion-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kcrash-dev kdbusaddons-dev kdnssd-dev kdoctools-dev kglobalaccel-dev kiconthemes-dev kitemmodels-dev kitemviews-dev kcmutils-dev knewstuff-dev knotifications-dev knotifyconfig-dev kparts-dev ktextwidgets-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev knotifications-dev akonadi-dev akonadi-notes-dev kcalutils-dev kontactinterface-dev libkdepim-dev kmime-dev pimcommon-dev kpimtextedit-dev grantleetheme-dev akonadi-search-dev libxslt-dev"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/release-service/$pkgver/src/knotes-$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

	# knotesgrantleeprinttest is broken
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "knotesgrantleeprinttest"
}

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

sha512sums="d62d0b653d87e5557b6e46333d9ee75fc5eabbd31b1075dc470e4db012015fbcc1768bbdbcd26fafe4d46dcfd470230f31a42820b20445ba18a250a884fcfd13  knotes-20.12.1.tar.xz"