aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-sort-key
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-09-13 07:13:40 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-09-13 07:15:43 +0000
commitfb378a017bc6eba8610438dac4bccce51210a84c (patch)
tree9c89d8ee08d4039f83ea513dbeb31dd71a95fdf8 /community/perl-sort-key
parent71a3797b2a3035ba71846a2bae312c26e46cf116 (diff)
downloadaports-fb378a017bc6eba8610438dac4bccce51210a84c.tar.gz
aports-fb378a017bc6eba8610438dac4bccce51210a84c.tar.bz2
aports-fb378a017bc6eba8610438dac4bccce51210a84c.tar.xz
community/perl-[class-factoryutil|datetime-format-builder|sort-key|text-csv_xs]: moved from testing
Diffstat (limited to 'community/perl-sort-key')
-rw-r--r--community/perl-sort-key/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/community/perl-sort-key/APKBUILD b/community/perl-sort-key/APKBUILD
new file mode 100644
index 0000000000..9b6bf934b2
--- /dev/null
+++ b/community/perl-sort-key/APKBUILD
@@ -0,0 +1,42 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-sort-key
+_pkgreal=Sort-Key
+pkgver=1.33
+pkgrel=0
+pkgdesc="the fastest way to sort anything in Perl"
+url="http://search.cpan.org/dist/Sort-Key/"
+arch="all"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/S/SA/SALVA/$_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 && make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="a37ab0da0cfdc26e57b4c79e39f6d98f Sort-Key-1.33.tar.gz"
+sha256sums="ed6a4ccfab094c9cd164f564024e98bd21d94f4312ccac4d6246d22b34081acf Sort-Key-1.33.tar.gz"
+sha512sums="cf87cd2f5c0eea662dbdaf7faed5646ebd63925c71a093a79a9980d6de290b1128443954675893f263961e68d1db0e9e4ca1412a2734ce8dcdd271bcf4f1be17 Sort-Key-1.33.tar.gz"