aboutsummaryrefslogtreecommitdiffstats
path: root/testing/cherrytree/APKBUILD
blob: 1ff0dae5ef576ed217f70252cd5c8092f13c424c (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
37
38
39
40
41
42
# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=cherrytree
pkgver=0.99.30
pkgrel=0
pkgdesc="hierarchical note taking application featuring rich text and syntax highlighting"
url="https://github.com/giuspen/cherrytree"
license="GPL-3.0-or-later"
# armv7: Test #19: MiscUtilsGroup.ThreadSafeDEQueue_2 Subprocess aborted***Exception
# s390x: Test #19: MiscUtilsGroup.ThreadSafeDEQueue_2 Subprocess aborted***Exception
arch="all !armv7 !s390x"
makedepends="cmake gtkmm3-dev gtksourceviewmm3-dev gspell-dev libxml++-2.6-dev
	sqlite-dev curl-dev uchardet-dev fmt-dev spdlog-dev python3"
checkdepends="xvfb-run"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/giuspen/cherrytree/releases/download/$pkgver/cherrytree_$pkgver.tar.xz"
builddir="$srcdir/${pkgname}_$pkgver"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=ON \
		-DAUTO_RUN_TESTING=OFF \
		-DPYTHON_EXEC=/usr/bin/python3
	cmake --build build
}

check() {
	# Skip broken ms_clip_convert test:
	# ms_clip_convert: ***Exception: SegFault
	cd build && xvfb-run ctest -E ClipboardGroup.ms_clip_convert
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
	# Remove test files
	rm -rv $pkgdir/usr/include $pkgdir/usr/lib
}

sha512sums="949308a5a1eb2ee722d5f4cc530735b597d6caf1f04c4858903260a8c5eedbdc8431e1988516bb5b4fd425c171bbaa332293d741f0a8e594f6c0276468d2ee22  cherrytree_0.99.30.tar.xz"