summaryrefslogtreecommitdiff
path: root/user/perl-text-template/APKBUILD
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-04-26 18:11:09 -0500
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-04-26 18:11:09 -0500
commitb10a0f3b9240ddd7c20e0eec56329c354aa1754b (patch)
tree978b89cf8d3324ce8b08c109a35d667901310459 /user/perl-text-template/APKBUILD
parentaaeb7ad04abb5e78259653998cf8fff52b0f7631 (diff)
downloadpackages-b10a0f3b9240ddd7c20e0eec56329c354aa1754b.tar.gz
packages-b10a0f3b9240ddd7c20e0eec56329c354aa1754b.tar.bz2
packages-b10a0f3b9240ddd7c20e0eec56329c354aa1754b.tar.xz
packages-b10a0f3b9240ddd7c20e0eec56329c354aa1754b.zip
user/perl-text-template: new package
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"