# Description: Library for generating documents in Open Document Format
# URL: https://sourceforge.net/p/libwpd/wiki/libodfgen/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: librevenge libxml2

name=libodfgen
version=0.1.8
release=3
source=(https://sourceforge.net/projects/libwpd/files/libodfgen/$name-$version/$name-$version.tar.xz
  ellipticalarc.patch
  rpath.patch)

build() {
  cd $name-$version

  patch -Np0 -i $SRC/ellipticalarc.patch
  patch -Np0 -i $SRC/rpath.patch

  ./configure --prefix=/usr \
    --without-docs
  make
  make DESTDIR=$PKG install
}
