summaryrefslogtreecommitdiff
path: root/system/po4a/APKBUILD
blob: 7ba0d5b1164890c47e2e61f7f291b0309d877ff1 (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
# Contributor: Christian Kampka <christian@kampka.net>
# Maintainer: 
pkgname=po4a
pkgver=0.54
pkgrel=0
pkgdesc="Tools for helping translation of documentation"
url="https://po4a.org"
arch="noarch"
options="!check"  # massive incompetence
license="GPL-2.0-only"
depends="perl gettext-tiny perl-sgmls perl-unicode-linebreak"
makedepends="docbook-xsl perl-module-build diffutils"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/mquinson/po4a/releases/download/v$pkgver/po4a-$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="5d97a169c73bcb872247599af477ecca9112b9ff576dfb93a2aa06b9891464a1837d799304f1a3ea8344ad46a4529ec19568584b7914761deccc09a9099e3130  po4a-0.54.tar.gz"