summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/libical/APKBUILD34
-rw-r--r--user/libical/automake.patch11
2 files changed, 45 insertions, 0 deletions
diff --git a/user/libical/APKBUILD b/user/libical/APKBUILD
new file mode 100644
index 000000000..8f771227f
--- /dev/null
+++ b/user/libical/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer:
+pkgname=libical
+pkgver=3.0.3
+pkgrel=0
+pkgdesc="Reference implementation of the iCalendar format"
+url="https://libical.github.io/libical/"
+arch="all"
+#options="!check" # Test suite is very broken.
+license="MPL-2.0 OR LGPL-2.1-only"
+depends=""
+makedepends="cmake libxml2-dev perl"
+subpackages="$pkgname-dev"
+source="https://github.com/libical/libical/releases/download/v$pkgver/libical-$pkgver.tar.gz"
+
+build() {
+ cd "$builddir"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DSHARED_ONLY=true
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="ed8e7917e37abbe426a06b4ae049a365e66542b1258ba22ebacbe842bda883d0fe591e65574fd954da531d6414a7b13e84fa28a20e7b08836679107f615df27a libical-3.0.3.tar.gz"
diff --git a/user/libical/automake.patch b/user/libical/automake.patch
new file mode 100644
index 000000000..757220a62
--- /dev/null
+++ b/user/libical/automake.patch
@@ -0,0 +1,11 @@
+--- ./configure.in.orig 2012-12-31 20:03:51.355227119 +0000
++++ ./configure.in 2012-12-31 20:04:03.445327143 +0000
+@@ -5,7 +5,7 @@
+ AC_CANONICAL_SYSTEM
+ AM_INIT_AUTOMAKE
+
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADER(config.h)
+
+ dnl Initialize maintainer mode
+ AM_MAINTAINER_MODE