diff options
Diffstat (limited to 'community/kcalutils/APKBUILD')
-rw-r--r-- | community/kcalutils/APKBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/community/kcalutils/APKBUILD b/community/kcalutils/APKBUILD new file mode 100644 index 00000000000..815e00584af --- /dev/null +++ b/community/kcalutils/APKBUILD @@ -0,0 +1,57 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Maintainer: team/kde <bribbers@disroot.org> + +# The group tag is just to easily find this APKBUILD by some scripts for automation +# group=kde-applications +pkgname=kcalutils +pkgver=24.02.2 +pkgrel=0 +pkgdesc="The KDE calendar utility library" +# armhf blocked by extra-cmake-modules +arch="all !armhf" +url="https://api.kde.org/kdepim/kcalutils/html" +license="LGPL-2.0-or-later" +depends_dev=" + grantlee-dev + kcalendarcore-dev + kcodecs-dev + kconfig-dev + kconfigwidgets-dev + kcoreaddons-dev + ki18n-dev + kiconthemes-dev + kidentitymanagement-dev + ktexttemplate-dev + kwidgetsaddons-dev + " +makedepends="$depends_dev + extra-cmake-modules + samurai + " +checkdepends="xvfb-run" +subpackages="$pkgname-dev $pkgname-lang" +_repo_url="https://invent.kde.org/pim/kcalutils.git" +source="https://download.kde.org/stable/release-service/$pkgver/src/kcalutils-$pkgver.tar.xz" + +build() { + cmake -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + cmake --build build +} + +check() { + cd build + + # kcalutils-testincidenceformatter and kcalutils-testtodotooltip are broken + CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "kcalutils-test(incidenceformatter|todotooltip|dndfactory)" +} + +package() { + DESTDIR="$pkgdir" cmake --install build +} + +sha512sums=" +9c6642e79da6749065e76cfb3ec8c316d413bf2897ec19b92350bfb35ccc70ffe94f1afa747f0d8effd11b8767c6cc2ae6a022c142301dbc88fd49f76771382e kcalutils-24.02.2.tar.xz +" |