diff options
Diffstat (limited to 'main/libical/APKBUILD')
-rw-r--r-- | main/libical/APKBUILD | 29 |
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" |