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
"
