aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-text-template/APKBUILD
blob: 172c12cd4eac0f49aac1dcbd09116bf500d58c51 (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
34
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-text-template
pkgver=1.51
pkgrel=0
pkgdesc="Text::Template perl module"
url="http://search.cpan.org/dist/Text-Template"
arch="noarch"
license="GPL-1.0-or-later Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-warnings"
install=""
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() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make && make test
}

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

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

sha512sums="038a810746684b26cd6a763cfb8adff57a2ed8dc57e44b170b6ba6c8271d513289546294439cfe1c8b77f40153751596a023079ee79bfc6b59fa9393cfcc04f4  Text-Template-1.51.tar.gz"