aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptrcnull <git@ptrcnull.me>2024-03-10 20:07:03 +0100
committerptrcnull <git@ptrcnull.me>2024-03-10 20:08:16 +0100
commitc9cafe8d4bdbc7ad66fdb985240f1c06f26f2cb8 (patch)
treee957d20d19d2ea338839fdeaafdf90d39e9a8c22
parent5dd8df9aa4fb7c77c1e37798e146c91280d22ce2 (diff)
community/kcalendarcore5: restore
used by: - digikam - ktimetracker - nemo-qml-plugin-calendar - mkcal
-rw-r--r--community/kcalendarcore5/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/community/kcalendarcore5/APKBUILD b/community/kcalendarcore5/APKBUILD
new file mode 100644
index 00000000000..80825eba114
--- /dev/null
+++ b/community/kcalendarcore5/APKBUILD
@@ -0,0 +1,51 @@
+# 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-frameworks
+pkgname=kcalendarcore5
+pkgver=5.115.0
+pkgrel=1
+pkgdesc="The KDE calendar access library"
+arch="all !armhf" # armhf blocked by extra-cmake-modules
+url="https://community.kde.org/Frameworks"
+license="LGPL-2.0-or-later"
+depends_dev="
+ libical-dev
+ qt5-qtbase-dev
+ "
+makedepends="$depends_dev
+ doxygen
+ extra-cmake-modules
+ qt5-qttools-dev
+ samurai
+ "
+subpackages="$pkgname-dev $pkgname-doc"
+_repo_url="https://invent.kde.org/frameworks/kcalendarcore.git"
+source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kcalendarcore-$pkgver.tar.xz"
+options="!check" # RecursOn-ConnectDaily(2|3|6) make the builders stuck
+builddir="$srcdir/kcalendarcore-$pkgver"
+
+replaces="kcalcore kcalendarcore<=5.110.0-r0"
+
+build() {
+ cmake -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_QCH=ON
+ cmake --build build
+}
+
+check() {
+ # testrecurtodo, testreadrecurrenceid, testicaltimezones, testmemorycalendar and testtimesininterval are broken
+ ctest --test-dir build --output-on-failure -E "test(recurtodo|readrecurrenceid|icaltimezones|memorycalendar|timesininterval)"
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
+
+sha512sums="
+20a47d83a8eedc62e307f8ff49e42d9c74cb4867c15b8ad52a1a20442c839d1a1484abb8c76e17cc0c189578a71f4f40e3cff5e591118904cf3c738b18a03e24 kcalendarcore-5.115.0.tar.xz
+"