aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-05-19 09:32:50 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-05-19 09:32:50 +0000
commit28a503181e1ac00e9a54722e897e761ee0867908 (patch)
tree490abab13976f52aad29ba9860c9eebd068318cb
parenta366bed79017f4b8ff525a3f5d480091fbcd9c9b (diff)
downloadaports-28a503181e1ac00e9a54722e897e761ee0867908.tar.gz
aports-28a503181e1ac00e9a54722e897e761ee0867908.tar.bz2
aports-28a503181e1ac00e9a54722e897e761ee0867908.tar.xz
community/perl-html-template: upgrade to 2.97, improved APKBUILD
-rw-r--r--community/perl-html-template/APKBUILD26
1 files changed, 14 insertions, 12 deletions
diff --git a/community/perl-html-template/APKBUILD b/community/perl-html-template/APKBUILD
index 9f8876aa86..055ca26726 100644
--- a/community/perl-html-template/APKBUILD
+++ b/community/perl-html-template/APKBUILD
@@ -3,8 +3,8 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-html-template
_pkgreal=HTML-Template
-pkgver=2.95
-pkgrel=1
+pkgver=2.97
+pkgrel=0
pkgdesc="Perl module to use HTML-like templating language"
url="http://search.cpan.org/dist/HTML-Template/"
arch="noarch"
@@ -14,26 +14,28 @@ cpanmakedepends="perl-cgi"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/W/WO/WONKO/$_pkgreal-$pkgver.tar.gz"
+source="http://search.cpan.org/CPAN/authors/id/S/SA/SAMTREGAR/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
-_builddir="$srcdir/$_pkgreal-$pkgver"
+check() {
+ cd "$builddir"
+ make test
+}
prepare() {
- cd "$_builddir"
+ cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- make && make test
+ cd "$builddir"
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
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"
+sha512sums="e1cb68db24db1692c0fb3838739798e5716340e3e78260ee95614af5bf29ee100cc86bbd15a2dda3bb98c7f2ecdf0e3ff8ca7775171a44d9ed347d7f9c850783 HTML-Template-2.97.tar.gz"