aboutsummaryrefslogtreecommitdiffstats
path: root/main/libical/APKBUILD
diff options
context:
space:
mode:
authorPaul Bredbury <brebs@sent.com>2019-04-07 17:29:30 +0100
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-04-08 08:19:37 +0000
commite6ee35d11eca7f4d046efe106cc7d5c19d8c76b3 (patch)
tree7853ae1f90e17c88ec3ca63a82a272938135d53a /main/libical/APKBUILD
parent432a459dc6e58a9040897a6fb4341c8292f6ff33 (diff)
downloadaports-e6ee35d11eca7f4d046efe106cc7d5c19d8c76b3.tar.bz2
aports-e6ee35d11eca7f4d046efe106cc7d5c19d8c76b3.tar.xz
main/libical: upgrade to 3.0.4
Add db & icu dependencies, as per evolution-data-server.
Diffstat (limited to 'main/libical/APKBUILD')
-rw-r--r--main/libical/APKBUILD29
1 files 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 <ncopa@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"