app=qpdf
version=6.0.0
build=1sml
homepage="http://qpdf.sourceforge.net/"
download="https://sourceforge.net/projects/qpdf/files/qpdf/$version/qpdf-$version.tar.gz"
desc="Command-line tools and library for transforming PDF files"
requires="gcc-libs pcre"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version 
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-static

  make
  make install DESTDIR=$pkg 

  cp Artistic* $pkgdocs/

  mkfinalpkg
}

sha512sums="
a6025fca43885bd04e43c8222a0bb858ef7cfc4c09abdda324975dcf8bdc99e225997c3e12f3ecac15f6aca314e4d836db00f2fe1bce600c36a9a53bf934a208  qpdf-6.0.0.tar.lz
"
