pkgname=xmlto
pkgver=0.0.29
pkgdesc="Convert xml to many other formats"
arch=('x86_64')
homepage="https://pagure.io/xmlto/"
license=('GPL')
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://pagure.io/xmlto/archive/${pkgver}/${sources[0]}")
md5sums=("556f2642cdcd005749bd4c08bc621c37")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  autoreconf -fiv

  ./configure BASH=/bin/bash \
              LINKS="/usr/bin/links" \
              --prefix=/usr \
              --mandir=/usr/share/man \
              --with-webbrowser=links

  make
}

src_check() {
  make check
}

src_install() {
  make DESTDIR="${pkgdir}" install
}

