diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 09:30:23 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 11:24:37 +0000 |
commit | 6f23715c77110233c34f7ebef41963e7164ce592 (patch) | |
tree | 0484d757c50419f6fd2e454f56090b1da984228e /community/perl-template-toolkit | |
parent | 716d29866f561b553a3d3e348a5ca8ccbb502562 (diff) | |
download | aports-6f23715c77110233c34f7ebef41963e7164ce592.tar.bz2 aports-6f23715c77110233c34f7ebef41963e7164ce592.tar.xz |
community/perl-template-toolkit: moved from testing
Diffstat (limited to 'community/perl-template-toolkit')
-rw-r--r-- | community/perl-template-toolkit/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/community/perl-template-toolkit/APKBUILD b/community/perl-template-toolkit/APKBUILD new file mode 100644 index 0000000000..3912feb56e --- /dev/null +++ b/community/perl-template-toolkit/APKBUILD @@ -0,0 +1,46 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=perl-template-toolkit +_pkgreal=Template-Toolkit +pkgver=2.26 +pkgrel=2 +pkgdesc="comprehensive template processing system" +url="http://search.cpan.org/dist/Template-Toolkit/" +arch="all" +license="GPL PerlArtistic" +cpandepends="perl-appconfig" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/A/AB/ABW/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="4c289856ebee446ebbe2629b24f0734b Template-Toolkit-2.26.tar.gz" +sha256sums="e7e1cf36026f1ef96d8233e18a3fb39e1eafe9109edc639ecf25b20651cd76be Template-Toolkit-2.26.tar.gz" +sha512sums="97e49392542e240840b44f0d78ea601afb26a6675f76faa9765c158820d596308a7f35057bf347d51a86a5f9134dfd4a02ce7a80b47a98b9bdbca68fff9146d6 Template-Toolkit-2.26.tar.gz" |