aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/perl-html-template/APKBUILD
blob: 7e8ef4a86d995fb3a6771c7b7a917201cb05bad2 (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
35
36
37
38
39
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-html-template
_pkgreal=HTML-Template
pkgver=2.95
pkgrel=0
pkgdesc="Perl module to use HTML-like templating language"
url="http://search.cpan.org/dist/HTML-Template/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/W/WO/WONKO/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$_builddir"
	make && make test
}

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

md5sums="6f08e9631af52e6a5f6e4648b89265fe  HTML-Template-2.95.tar.gz"
sha256sums="78100adaea7a56ae65826220fcb0c18a188df25a27227f96175cf7169fbb501d  HTML-Template-2.95.tar.gz"
sha512sums="4b52856c7ac97a6c7985c73492aa5074f90b6b7f89dfb2434487a2cfeb9d521e55afe4e77c33285042e3d391fe6e9fc86a3f58bb6850d94f1331bb7be9809be7  HTML-Template-2.95.tar.gz"