summaryrefslogtreecommitdiff
path: root/user/libical/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/libical/APKBUILD')
-rw-r--r--user/libical/APKBUILD34
1 files changed, 34 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"