summaryrefslogtreecommitdiff
path: root/user/perl-text-template/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-text-template/APKBUILD')
-rw-r--r--user/perl-text-template/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-text-template/APKBUILD b/user/perl-text-template/APKBUILD
new file mode 100644
index 000000000..5dc3d3ad6
--- /dev/null
+++ b/user/perl-text-template/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-text-template
+pkgver=1.55
+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 perl-test-more-utf8 perl-test-warnings"
+makedepends=""
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/M/MS/MSCHOUT/Text-Template-$pkgver.tar.gz"
+builddir="$srcdir/Text-Template-$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="19a281cdfc56483bc717be5ae2367ae0edd27e2d31a693f9e54a660ec21cb6b51a8e5eae2e659d0053f59cdb6b9266cf1e175fd55e1abf9f9362c973c44d8173 Text-Template-1.55.tar.gz"