# Maintainer: Christian Kampka <christian@kampka.net>
pkgname=po4a
pkgver=0.52
pkgrel=1
_dlid=4214
pkgdesc="Tools for helping translation of documentation"
url="https://po4a.alioth.debian.org"
arch="noarch"
license="GPL"
depends="perl gettext"
options="!check"  # comments changed format, it fails
makedepends="docbook-xsl perl-module-build diffutils"
subpackages="$pkgname-doc $pkgname-lang"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/mquinson/${pkgname}/archive/v${pkgver}.tar.gz"
builddir="$srcdir/${pkgname}-${pkgver}"


build() {
	cd "$builddir"
	perl Build.PL installdirs=vendor create_packlist=0
	perl Build
}

check() {
	cd "$builddir"
	perl Build test
}

package() {
	cd "$builddir"
	perl Build destdir=${pkgdir} install
	# remove perllocal.pod and .packlist
	find ${pkgdir} -name .packlist -o -name perllocal.pod -delete
}

sha512sums="8c72a41de9b6e11f46384906b52e47cc85d00d771a6a8ef09205548ea0d6277c087d8d324fd7ea07a92147b9bd24ed69a6bf49fb745b64d3c20ab5cd24d97203  po4a-0.52.tar.gz"
