aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-text-template/APKBUILD
blob: 2704ba39012c963125c30f2cf985de8dd88bba68 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-text-template
pkgver=1.56
pkgrel=0
pkgdesc="Text::Template perl module"
url="http://search.cpan.org/dist/Text-Template"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-warnings"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MS/MSCHOUT/Text-Template-$pkgver.tar.gz"

builddir="$srcdir/Text-Template-$pkgver"
build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make -C "$builddir" test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="873a03fc436cc22342310fcc0ab7963d5a69a06bb2fe9f2b7866ccca5c18b2eccef76cdcdf58f2465553a8b6088b28373f19d046157d78a062e056901a411add  Text-Template-1.56.tar.gz"