summaryrefslogtreecommitdiff
path: root/user/libical/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-13 02:38:21 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-13 02:38:21 -0500
commitff4cd7d31f2a18039e2ce40960a595d7628f566a (patch)
tree141df693f728293177a0aa94ccc800bb71e34252 /user/libical/APKBUILD
parent077e0feee979492662f5e9a226fdf0b986c51fed (diff)
downloadpackages-ff4cd7d31f2a18039e2ce40960a595d7628f566a.tar.gz
packages-ff4cd7d31f2a18039e2ce40960a595d7628f566a.tar.bz2
packages-ff4cd7d31f2a18039e2ce40960a595d7628f566a.tar.xz
packages-ff4cd7d31f2a18039e2ce40960a595d7628f566a.zip
user/libical: bump to new 3.x series, enable test suite
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"