aboutsummaryrefslogtreecommitdiffstats
path: root/main/po4a/APKBUILD
blob: 72cecfeac6a1338bbc52ea63c7537807baccb26e (plain)
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
# Maintainer: Christian Kampka <christian@kampka.net>
pkgname=po4a
pkgver=0.57
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/po4a/archive/v$pkgver.tar.gz"

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="d01a19d4702c2bba1ef26e3149e865927aec7e6f3e5d7495aa3927fa34228e795cb76786b6a119d7eafc62de38949ab1b9e176bfcf8ead8875b9813124a6dab5  po4a-0.57.tar.gz"