aboutsummaryrefslogtreecommitdiffstats
path: root/main/po4a/APKBUILD
blob: 8bfdb1c33a0807f3c8d39d2f01c5780189a771f9 (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
35
36
# 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-2.0-or-later"
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"