aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-07-06 11:33:08 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-07-11 14:31:24 +0300
commitcb1e294ad95e33e97149e95c0684c91fe4190745 (patch)
tree9e90b8ffa026b5b2672d4a20310e085e6f4cad88 /testing
parent895a204f5d1b4dcb1ef9fb83e0155165f13577ba (diff)
downloadaports-cb1e294ad95e33e97149e95c0684c91fe4190745.tar.bz2
aports-cb1e294ad95e33e97149e95c0684c91fe4190745.tar.xz
testing/perl-template-plugin-number-format: new aport
http://search.cpan.org/dist/Template-Plugin-Number-Format/
Diffstat (limited to 'testing')
-rw-r--r--testing/perl-template-plugin-number-format/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/perl-template-plugin-number-format/APKBUILD b/testing/perl-template-plugin-number-format/APKBUILD
new file mode 100644
index 0000000000..56dc0aaf03
--- /dev/null
+++ b/testing/perl-template-plugin-number-format/APKBUILD
@@ -0,0 +1,48 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=perl-template-plugin-number-format
+_pkgreal=Template-Plugin-Number-Format
+pkgver=1.06
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Template-Plugin-Number-Format/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-template-toolkit perl-number-format"
+cpanmakedepends=""
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DA/DARREN/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare || return 1
+
+ cd "$builddir"
+ 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
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="85ddc46618efc5a11a657f265ea63b09bd8df9f8e99122bcee5a22a23099ac8eb3c930d61382529b1e3c0b4dd663d32e30e77ac33b6d1b305475e740053001cb Template-Plugin-Number-Format-1.06.tar.gz"