aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2015-10-09 09:32:44 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2015-10-09 11:57:10 +0000
commit91205f56d90674b9d262637c22eefcb6ad06c1c1 (patch)
tree79c17110fb9d37b2c4d8aade4b00a70eb9aedab2 /testing
parent8933322ae9336232708a59f801b7a5b0d780d712 (diff)
downloadaports-91205f56d90674b9d262637c22eefcb6ad06c1c1.tar.bz2
aports-91205f56d90674b9d262637c22eefcb6ad06c1c1.tar.xz
testing/perl-sort-versions: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/perl-sort-versions/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-sort-versions/APKBUILD b/testing/perl-sort-versions/APKBUILD
new file mode 100644
index 0000000000..bd1c3b8a22
--- /dev/null
+++ b/testing/perl-sort-versions/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor:
+# Maintainer:
+pkgname=perl-sort-versions
+_pkgreal=Sort-Versions
+pkgver=1.61
+pkgrel=0
+pkgdesc="a perl 5 module for sorting of revision-like numbers"
+url="http://search.cpan.org/dist/Sort-Versions/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ 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="5da4058c646c15465a8f9b2c1bf70cba Sort-Versions-1.61.tar.gz"
+sha256sums="3e58b98002e448eda425dcdd5c745b5d4ba9328d0022a60a84d333ef6df5a174 Sort-Versions-1.61.tar.gz"
+sha512sums="e1336ffe180ebd0a15bf77d5f216809def7d297958da5d4f5e6f816c67a55f22cad48e2462b533b8b530d00b5178cda553d6dd164b6c2d9478242974d31afb59 Sort-Versions-1.61.tar.gz"