# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-applications pkgname=kopeninghours pkgver=23.04.3 pkgrel=1 pkgdesc="Library for parsing and evaluating OSM opening hours expressions" url="https://invent.kde.org/libraries/kopeninghours" # armhf blocked by extra-cmake-modules arch="all !armhf" license="BSD-3-Clause AND CC0-1.0 AND LGPL-2.0-or-later" makedepends=" bison doxygen extra-cmake-modules flex graphviz kholidays-dev ki18n-dev qt5-qtbase-dev qt5-qttools-dev samurai " subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" _repo_url="https://invent.kde.org/libraries/kopeninghours.git" source="https://download.kde.org/stable/release-service/$pkgver/src/kopeninghours-$pkgver.tar.xz" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON cmake --build build } check() { cd build # evaluatetest and iterationtest are broken CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "(evaluate|iteration)test" } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 6faddbf3da09fb4d3616abbc230c269f0ccb827f081ca3b2bf40874d7878efe69ea197ccf54f1b4db0e997eee11cca41891d64196b77062763d62e286ce4aa4c kopeninghours-23.04.3.tar.xz "