Mail archive
alpine-aports

[alpine-aports] [PATCH 1/3] main/libical: upgrade to 3.0.4

From: Paul Bredbury <brebs_at_sent.com>
Date: Sun, 7 Apr 2019 17:29:30 +0100

Add db & icu dependencies, as per evolution-data-server.
---
 main/libical/APKBUILD | 29 ++++++++++++++++++++---------
 1 file changed, 20 insertions(+), 9 deletions(-)
diff --git a/main/libical/APKBUILD b/main/libical/APKBUILD
index 3ebaac71a9..8aebfc0f9d 100644
--- a/main/libical/APKBUILD
+++ b/main/libical/APKBUILD
_at_@ -1,30 +1,41 @@
 # Maintainer: Natanael Copa <ncopa_at_alpinelinux.org>
 pkgname=libical
-pkgver=2.0.0
-pkgrel=3
+pkgver=3.0.4
+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="LGPL MPL"
 depends=""
-makedepends="perl cmake"
+# tzdata is needed for tests
+makedepends="db-dev perl cmake glib-dev icu-dev libxml2-dev tzdata"
 subpackages="$pkgname-dev"
 source="https://github.com/libical/libical/releases/download/v$pkgver/libical-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver/build"
+
+prepare() {
+	mkdir "$builddir"
+	default_prepare
+}
 
-builddir="$srcdir"/$pkgname-$pkgver
 build() {
-	cd $builddir
-	cmake -DCMAKE_RELEASE_TYPE=Release \
+	cd "$builddir"
+	cmake .. \
+		-DCMAKE_RELEASE_TYPE=Release \
 		-DCMAKE_INSTALL_PREFIX=/usr \
 		-DCMAKE_INSTALL_LIBDIR=lib \
 		-DSHARED_ONLY=true
 	make
 }
 
+check() {
+	cd "$builddir"
+	make test ARGS="-V"
+}
+
 package() {
-	cd $builddir
+	cd "$builddir"
 	make DESTDIR="$pkgdir" install
 }
 
-sha512sums="06318512d5df25e97f64b0e82ade6eaa41e42a428641642ecb8973dc23b172698a8ff8734b7e12b033b1278a131c6339d208e1bfd1bcba0a2c9519a01749a55f  libical-2.0.0.tar.gz"
+sha512sums="491a1dd0c33bb823a79165eb6e4f86ef048a44642adfe44f8e69c83598b458ddf8e4365b11afc37d0b21bc1367e0a99096fc7887aae29e7ff4e3bd1cdee64dd9  libical-3.0.4.tar.gz"
-- 
2.21.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Sun Apr 07 2019 - 17:29:30 UTC