# Description: Library for importing and converting Corel WordPerfect(tm) Graphics images
# URL: https://libwpg.sourceforge.net/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: libwpd

name=libwpg
version=0.3.4
release=1
source=(https://downloads.sourceforge.net/project/libwpg/libwpg/$name-$version/$name-$version.tar.xz
  libwpg-bundled-soname.patch.0
  rpath.patch)

build() {
  cd $name-$version

  patch -Np0 -i $SRC/libwpg-bundled-soname.patch.0
  patch -Np0 -i $SRC/rpath.patch

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