# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=xmlto
pkgver=0.0.29
pkgrel=1
pkgdesc="Convert xml to many other formats"
arch=('i686' 'x86_64')
url="https://pagure.io/xmlto/"
msys2_references=(
  "anitya: 13307"
)
license=('GPL')
depends=('libxslt' 'perl-YAML-Syck' 'perl-Test-Pod')
makedepends=('docbook-xsl' 'autotools' 'gcc')
source=("https://pagure.io/xmlto/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('40504db68718385a4eaa9154a28f59e51e59d006d1aa14f5bc9d6fded1d6017a')

prepare() {
  cd "${pkgname}-${pkgver}"

  autoreconf -vfi
}

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr \
              --mandir=/usr/share/man
  make
}

package() {
  cd "$srcdir/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
