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

pkgname=xmlto
pkgver=0.0.28
pkgrel=2
pkgdesc="Convert xml to many other formats"
arch=('i686' 'x86_64')
url="https://pagure.io/xmlto/"
license=('GPL')
groups=('base-devel')
depends=('libxslt' 'perl-YAML-Syck' 'perl-Test-Pod')
makedepends=('docbook-xsl')
source=("https://releases.pagure.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
sha256sums=('1130df3a7957eb9f6f0d29e4aa1c75732a7dfb6d639be013859b5c7ec5421276')

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

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

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