aboutsummaryrefslogtreecommitdiffstats
path: root/main/po4a/APKBUILD
blob: f4a9b560b9b94b213cba6c03abb80e5762c8e04a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Christian Kampka <christian@kampka.net>
pkgname=po4a
pkgver=0.55
pkgrel=0
pkgdesc="Tools for helping translation of documentation"
url="https://po4a.org"
arch="noarch"
license="GPL-2.0-or-later"
options="!check" # test_requires missing: SGMLS and Unicode::GCString
depends="gettext perl"
makedepends="diffutils docbook-xsl perl-module-build"
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="dfaaa314205d9ee2e66c3ebb1e01e6b46c4680fab9463185f2f539e22777749f47a758a1c2787a2dd4c865164eec9e795d58fd534fbe90cecd41bb260f9639d7  po4a-0.55.tar.gz"