diff options
Diffstat (limited to 'user/perl-template-gd/APKBUILD')
-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" |