diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-12-23 15:42:49 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-12-24 09:11:11 +0000 |
commit | ec01d676adc0182ff70af27537e741d7697feec3 (patch) | |
tree | 8f5973807a62477cf44564ef1786d54c2f3a3b3b /main/perl-datetime-format-natural | |
parent | 056db8010d7ac0d21757fb73ff1f3e809d3390c3 (diff) | |
download | aports-ec01d676adc0182ff70af27537e741d7697feec3.tar.bz2 aports-ec01d676adc0182ff70af27537e741d7697feec3.tar.xz |
main/perl-datetime-format-natural: new aport
Diffstat (limited to 'main/perl-datetime-format-natural')
-rw-r--r-- | main/perl-datetime-format-natural/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/main/perl-datetime-format-natural/APKBUILD b/main/perl-datetime-format-natural/APKBUILD new file mode 100644 index 0000000000..4777487522 --- /dev/null +++ b/main/perl-datetime-format-natural/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Leonardo Arena <rnalrd@alpinelinux.org> +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=perl-datetime-format-natural +_pkgreal=DateTime-Format-Natural +pkgver=1.02 +pkgrel=0 +pkgdesc="Create machine readable date/time with natural parsing logic" +url="http://search.cpan.org/dist/DateTime-Format-Natural/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-datetime-timezone perl-clone perl-params-validate perl-list-moreutils perl-datetime perl-boolean" +cpanmakedepends="perl-module-util perl-test-mocktime perl-date-calc" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/S/SC/SCHUBIGER/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + perl Build.PL installdirs=vendor || return 1 +} + +build() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + ./Build && ./Build test +} + +package() { + cd "$_builddir" + ./Build install destdir="$pkgdir" || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="258203626de566250ef245b2b680cacc DateTime-Format-Natural-1.02.tar.gz" +sha256sums="5479c48ade5eca9712784afee18c58308d56742a204d5ea9040d011f705303e3 DateTime-Format-Natural-1.02.tar.gz" +sha512sums="e291fb862499e3b823bb5ac216413ee8d316bf86d731c94d7204146f14ecb21d474d78bf90d584858e95b52b7f49fa0603da30cb59016ef65678f89f78353130 DateTime-Format-Natural-1.02.tar.gz" |