diff options
Diffstat (limited to 'main/perl-datetime')
-rw-r--r-- | main/perl-datetime/APKBUILD | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/main/perl-datetime/APKBUILD b/main/perl-datetime/APKBUILD index 4e42d288de..d6602984cd 100644 --- a/main/perl-datetime/APKBUILD +++ b/main/perl-datetime/APKBUILD @@ -1,43 +1,45 @@ +# Automatically generated by apkbuild-cpan, template 1 # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-datetime -pkgver=1.18 +_pkgreal=DateTime +pkgver=1.20 pkgrel=0 -pkgdesc="DateTime perl module" +pkgdesc="Perl module for DateTime" url="http://search.cpan.org/dist/DateTime/" arch="all" -license="GPLv2 or Artistic" -depends="perl perl-datetime-locale perl-test-exception perl-math-round - perl-datetime-timezone" -makedepends="perl-dev" -install="" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends perl-module-build perl-test-fatal + perl-test-warnings" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" -_builddir="$srcdir"/DateTime-$pkgver prepare() { - local i cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + if [ -e Build.PL ]; then + perl Build.PL installdirs=vendor || return 1 + else + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 + fi } build() { cd "$_builddir" - unset CFLAGS - perl Build.PL installdirs=vendor || return 1 - ./Build + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + ./Build && ./Build test } package() { cd "$_builddir" - ./Build install destdir="$pkgdir" + ./Build install destdir="$pkgdir" || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="58160bea9744a7bc9d7737f7dad9fa72 DateTime-1.18.tar.gz" -sha256sums="bada2c9fe3e79429f7c84592d9a9defd3a8c71f7b584389d450aa324340d913a DateTime-1.18.tar.gz" -sha512sums="664cc7dacd94fb34d0b185ebfb855ce671f0c9fdbe7097617306cd3e9083fabc07acb3ca024944fe3736d52c0ed3c840c916f9af3d5c4cad0dddfcc61a25ec12 DateTime-1.18.tar.gz" +md5sums="9cc3afee0f5cf6fb786aa7e2e32a89bd DateTime-1.20.tar.gz" +sha256sums="ac909ca4e26f2713940302ad1fd8068de0a6970416a5a88a812cceb155becb0d DateTime-1.20.tar.gz" +sha512sums="b0374407683da3b68d0a127a2899deb8222f3bbd3e1f68481a000ca8c7fbde69bf4e43253b4cdd68f97b0a0ee7d8ed9d7a08fda8b5bf713b0f02ba722cd3aff9 DateTime-1.20.tar.gz" |