summaryrefslogblamecommitdiff
path: root/user/perl-template-toolkit/APKBUILD
blob: 4d1cdec4c3715177ef78042d316ef5145b4bc0b0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13


                                                                   
           








                                                   
                                                                                          


















                                                                           
                                                                                                                                                                           
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-template-toolkit
pkgver=2.28
pkgrel=0
pkgdesc="Comprehensive template processing system"
url="https://metacpan.org/release/Template-Toolkit"
arch="all"
license="Artistic-1.0-Perl"
depends="perl-appconfig"
makedepends="perl-dev"
checkdepends="perl-cgi perl-test-leaktrace"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/Template-Toolkit-$pkgver.tar.gz"
builddir="$srcdir/Template-Toolkit-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="8f18a411e05108cddc4f2c5560c76b663d6b913f101c6b294b584390cd76d79805afa8208e1dfaf01011ff7d6364844a24587b33d8a3d330fb6b410e75e78a1d  Template-Toolkit-2.28.tar.gz"