# Depends on: libxml2 cmake gobject-introspection icu doxygen

description="Implementation of the iCalendar protocols and data formats."
url="http://sourceforge.net/projects/freeassociation/"
packager="tnut <tnut@nutyx.org>"
contributors="Pierre B"

name=libical
version=3.0.3
release=2

source=( https://github.com/libical/libical/releases/download/v$version/$name-$version.tar.gz)

build() {
cd $name-$version
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_BUILD_TYPE=Release  \
-DSHARED_ONLY=yes \
..
make
make docs
make DESTDIR=$PKG install
install -vdm755 $PKG/usr/share/doc/libical-$version/html
cp -vr apidocs/html/* $PKG/usr/share/doc/libical-$version/html
}
