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

From: Paul Bredbury <[email-masked]>
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
@@ -1,30 +1,41 @@
 # Maintainer: Natanael Copa <[email-masked]>
 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:  [email-masked]
Help:         [email-masked]
---

---

From: Paul Bredbury <[email-masked]>
Date: Sun, 7 Apr 2019 17:29:32 +0100

---
 testing/evolution/APKBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/evolution/APKBUILD b/testing/evolution/APKBUILD
index b8141d8d33..082b86f885 100644
--- a/testing/evolution/APKBUILD
+++ b/testing/evolution/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=evolution
 pkgver=3.32.0
-pkgrel=0
+pkgrel=1
 pkgdesc="evolution mail client"
 url="https://projects.gnome.org/evolution"
 # limited by webkit2gtk
-- 
2.21.0

---

---

From: Paul Bredbury <[email-masked]>
Date: Sun, 7 Apr 2019 17:29:31 +0100

---
 testing/evolution-data-server/APKBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/evolution-data-server/APKBUILD b/testing/evolution-data-server/APKBUILD
index fe6a6d9c7a..23c95fadce 100644
--- a/testing/evolution-data-server/APKBUILD
+++ b/testing/evolution-data-server/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: 
 pkgname=evolution-data-server
 pkgver=3.32.0
-pkgrel=0
+pkgrel=1
 pkgdesc="data server for evolution"
 url="https://projects.gnome.org/evolution"
 arch="x86_64 x86 ppc64le aarch64 armhf armv7"
-- 
2.21.0

---