summaryrefslogtreecommitdiff
path: root/user/perl-template-toolkit/APKBUILD
blob: 43799221e7049b17ee8595168b8121cfada9656b (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-template-toolkit
_pkgreal=Template-Toolkit
_author=ATOOMIC
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=3.009
pkgrel=0
pkgdesc="Comprehensive template processing system"
url="https://metacpan.org/release/Template-Toolkit"
arch="all"
license="Artistic-1.0-Perl"
depends="perl-appconfig"
checkdepends="perl-cgi perl-test-leaktrace"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="940992d7e3059a64c273c2f0441a81e095560c35f4bb9ab75afb9eeeb58d043cc5ac9785e2eb79a6635480ade12771c75c632c755977124dbe7cbfae399f9972  Template-Toolkit-3.009.tar.gz"