summaryrefslogtreecommitdiff
path: root/user/perl-text-template/APKBUILD
blob: 076f1eee541aac5362a563566f7ea1d280645988 (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
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-text-template
_pkgreal=Text-Template
_author=MSCHOUT
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.58
pkgrel=0
pkgdesc="Perl module for expanding embedded Perl in templates"
url="https://metacpan.org/pod/Text::Template"
arch="noarch"
license="Artistic-1.0-Perl"
depends="perl-test-more-utf8 perl-test-warnings"
makedepends=""
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="23bf03529c7607806c16573b5c0d08ba0b87cf7eb859538d1944bc13952741a88c15588e8de173053a51640c5bdad99c5cc246a67cc05be7eff32853887fbb11  Text-Template-1.58.tar.gz"