# Description: Microsoft Publisher file format parser library
# URL: https://wiki.documentfoundation.org/DLP/Libraries/libmspub
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: icu libwpd

name=libmspub
version=0.1.4
release=2
source=(https://dev-www.libreoffice.org/src/libmspub/$name-$version.tar.xz
  missing_include.patch
  ubsan.patch)

build() {
  cd $name-$version

  patch -Np1 -i $SRC/missing_include.patch
  patch -Np0 -i $SRC/ubsan.patch

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