APP=wv
VERSION=1.2.9
BUILD=1sml
HOMEPAGE="https://sourceforge.net/projects/wvware"
DOWNLOAD="https://www.abisource.com/downloads/wv/1.2.9/wv-1.2.9.tar.gz"
DESC="MSWord library can load and parse Word 2000, 97, 95 and 6 file formats"
REQUIRES="libgsf"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ac_cv_path_mkdir="mkdir -p" \
  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-static \
    $BUILDDIST

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
0feaef2e4d88bcb4d837952a48edbd515e1e5b0a2d46652620a9e6f5808f6b2c6ed548126b098851df6dbca8a197e427aa460c6c5574f368e7a4b0ca2c43c202  wv-1.2.9.tar.lz
"
