mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
72 lines
1.9 KiB
Text
72 lines
1.9 KiB
Text
# Contributor: Alex Yam <alex@alexyam.com>
|
||
# Maintainer: Alex Yam <alex@alexyam.com>
|
||
pkgname=cherrytree
|
||
pkgver=0.99.54
|
||
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"
|
||
# s390x: libxml++2.6 missing
|
||
arch="all !s390x"
|
||
makedepends="
|
||
cmake
|
||
curl-dev
|
||
fmt-dev
|
||
gspell-dev
|
||
gtkmm3-dev
|
||
gtksourceviewmm3-dev
|
||
libxml++-2.6-dev
|
||
python3
|
||
samurai
|
||
spdlog-dev
|
||
sqlite-dev
|
||
uchardet-dev
|
||
vte3-dev
|
||
"
|
||
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"
|
||
|
||
case "$CARCH" in
|
||
riscv64) options="textrels" ;;
|
||
esac
|
||
|
||
build() {
|
||
cmake -B build -G Ninja \
|
||
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
||
-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 ExportsMultipleParametersTests.ChecksExports tests
|
||
#
|
||
# (run_tests_with_x_1:7077): Gtk-WARNING **: 04:05:18.849:
|
||
# Found an icon but could not load it. Most likely gdk-pixbuf does not
|
||
# provide SVG support.
|
||
#
|
||
# [ FAILED ] ExportsTests/ExportsMultipleParametersTests.ChecksExports
|
||
# /testing/cherrytree/src/cherrytree_0.99.44/tests/data_данные
|
||
# /test_документ.ctb", "--export_to_html_dir")
|
||
xvfb-run -a ctest --test-dir build -j $JOBS --output-on-failure \
|
||
-E ExportsMultipleParametersTests.ChecksExports
|
||
}
|
||
|
||
package() {
|
||
DESTDIR="$pkgdir" cmake --build build --target install
|
||
|
||
# Remove gmock/gtest files
|
||
rm -rv "$pkgdir"/usr/include "$pkgdir"/usr/lib
|
||
|
||
# bundled breeze-icons
|
||
rm -rv "$pkgdir"/usr/share/cherrytree/icons
|
||
}
|
||
|
||
sha512sums="
|
||
c4e8ff4440fc688ee6b24279857452e00f85614dcf094b311a768479fcc842712171e4dcd0b121b865aedd2d854ed5906e7fc615a69a76d50af71b91bb29835e cherrytree_0.99.54.tar.xz
|
||
"
|