diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-11-18 02:52:51 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-11-18 02:52:51 +0000 |
commit | de3c4c7ed5860d43dd144999fb58657789c41dc4 (patch) | |
tree | e472a88c8d1aa18ed60736a40dda55804d68b41a | |
parent | 7f269e026da39a78af5158cc0fba1d7dff2cdf07 (diff) | |
download | packages-de3c4c7ed5860d43dd144999fb58657789c41dc4.tar.gz packages-de3c4c7ed5860d43dd144999fb58657789c41dc4.tar.bz2 packages-de3c4c7ed5860d43dd144999fb58657789c41dc4.tar.xz packages-de3c4c7ed5860d43dd144999fb58657789c41dc4.zip |
user/perl-template-gd: new package
-rw-r--r-- | user/perl-template-gd/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-template-gd/APKBUILD b/user/perl-template-gd/APKBUILD new file mode 100644 index 000000000..fd5dfd789 --- /dev/null +++ b/user/perl-template-gd/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-template-gd +_pkgname=Template-GD +pkgver=2.66 +pkgrel=0 +pkgdesc="Use GD from Perl's Template Toolkit" +url="https://metacpan.org/release/Template-GD" +arch="noarch" +license="Artistic-1.0-Perl OR GPL-2.0-only" +depends="perl-gd perl-template-toolkit" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/A/AB/ABW/Template-GD-$pkgver.tar.gz" +builddir="$srcdir/Template-GD-$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="676b9a2345dbdf65b276a2cf2e50033d91ad958fc579d4bd02516baf9994cb1ca64edbedd320da0eb58738783054f8a58e358bc1da5c128bea98d4f031b0c84c Template-GD-2.66.tar.gz" |