# Description: filter for old StarOffice documents(.sdc, .sdw, ...) based on librevenge
# URL: https://github.com/fosnola/libstaroffice
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: librevenge

name=libstaroffice
version=0.0.7
release=2
source=(https://github.com/fosnola/$name/releases/download/$version/$name-$version.tar.xz
  libstaroffice-bundled-soname.patch.0)

build() {
  cd $name-$version

  patch -Np0 -i $SRC/libstaroffice-bundled-soname.patch.0

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