From 17503d435ad575336d48ade76a88e76cc51b8322 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 11 Oct 2017 22:46:18 -0500 Subject: user/kcalcore: new package --- user/kcalcore/APKBUILD | 47 ++++++++++++++++++++++++++++++++++++++++ user/kcalcore/posix-header.patch | 37 +++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 user/kcalcore/APKBUILD create mode 100644 user/kcalcore/posix-header.patch diff --git a/user/kcalcore/APKBUILD b/user/kcalcore/APKBUILD new file mode 100644 index 000000000..3e7b2700d --- /dev/null +++ b/user/kcalcore/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=kcalcore +pkgver=17.08.1 +pkgrel=0 +pkgdesc="Library for managing a calendar of events" +url="https://www.kde.org/" +arch="all" +license="LGPL-2.0" +depends="" +depends_dev="qt5-qtbase-dev kconfig-dev kdelibs4support-dev libical-dev" +makedepends="$depends_dev cmake extra-cmake-modules bison" +checkdepends="tzdata" +install="" +subpackages="$pkgname-dev" +source="http://download.kde.org/stable/applications/$pkgver/src/kcalcore-$pkgver.tar.xz + posix-header.patch" +builddir="$srcdir/kcalcore-$pkgver" + +build() { + cd "$builddir" + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E RecursOn-RFC2445_RRULETest39.ics +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="e4602de6a2482b5c6f54dc5247638e0d440813dd964582b42e4c3e2d9865370ad82e24539e01db3c70f24649d5c4116407aabb2b1fab5bb954d95cf8b867c834 kcalcore-17.08.1.tar.xz +d911c2a03b1db1f9f3b19e7087ae5cbee59ced24ded3b43f2d3286651d13e5f531d171cf7dc6c26906116d4b51a79f2801828956fa1f4e7094fa2f53fe2b888f posix-header.patch" diff --git a/user/kcalcore/posix-header.patch b/user/kcalcore/posix-header.patch new file mode 100644 index 000000000..27522ae35 --- /dev/null +++ b/user/kcalcore/posix-header.patch @@ -0,0 +1,37 @@ +From b8a362ea78d945e54155b2538dcc1df8dd64d533 Mon Sep 17 00:00:00 2001 +From: "A. Wilcox" +Date: Wed, 11 Oct 2017 20:51:27 -0500 +Subject: [PATCH] versit: include strings.h for strcasecmp + +--- + src/versit/vcc.y | 1 + + src/versit/vobject.c | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/src/versit/vcc.y b/src/versit/vcc.y +index b9fbb0f..3e68795 100644 +--- a/src/versit/vcc.y ++++ b/src/versit/vcc.y +@@ -99,6 +99,7 @@ DFARS 252.227-7013 or 48 CFR 52.227-19, as applicable. + #endif + + #include ++#include + #include + #include + #include +diff --git a/src/versit/vobject.c b/src/versit/vobject.c +index db13f9e..a57c417 100644 +--- a/src/versit/vobject.c ++++ b/src/versit/vobject.c +@@ -46,6 +46,7 @@ DFARS 252.227-7013 or 48 CFR 52.227-19, as applicable. + + #include "vobject.h" + #include ++#include + #include + + #define NAME_OF(o) o->id +-- +2.10.0 + -- cgit v1.2.3-70-g09d2