diff options
Diffstat (limited to 'unmaintained/perl-sort-versions/APKBUILD')
-rw-r--r-- | unmaintained/perl-sort-versions/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/unmaintained/perl-sort-versions/APKBUILD b/unmaintained/perl-sort-versions/APKBUILD new file mode 100644 index 0000000000..bd1c3b8a22 --- /dev/null +++ b/unmaintained/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" |