# Maintainer: PktSurf <smlinux@pktsurf.in>
app=xmlto
version=0.0.28
build=1sml
homepage="https://pagure.io/xmlto"
download="https://releases.pagure.org/xmlto/xmlto-$version.tar.bz2"
desc="XML conversion tool"
requires="libxslt"

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

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

build() {
  ./configure \
    --prefix=""

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
428af553df979773a83136b31766a1a66bcf8524797b5e0a5973d2a28b5296b215765167e7aaa3ecfbed031ed17c72bedcd660c4f854e7673921d50bc1da4584  xmlto-0.0.28.tar.lz
"
