diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-01-11 17:36:14 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-01-11 17:36:14 +0000 |
commit | e9e6e71660d159d95fb37b2ae763d26aede52212 (patch) | |
tree | 18f566d03b2af11818c7e8d6a5425fe07fd78c9e | |
parent | 12639887678f113b38f63914225c2d2765e8185c (diff) | |
download | aports-e9e6e71660d159d95fb37b2ae763d26aede52212.tar.bz2 aports-e9e6e71660d159d95fb37b2ae763d26aede52212.tar.xz |
testing/perl-datetime-format-strptime: new aport
-rw-r--r-- | testing/perl-datetime-format-strptime/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-datetime-format-strptime/APKBUILD b/testing/perl-datetime-format-strptime/APKBUILD new file mode 100644 index 0000000000..6f5c5f183f --- /dev/null +++ b/testing/perl-datetime-format-strptime/APKBUILD @@ -0,0 +1,41 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-datetime-format-strptime +_pkgreal=DateTime-Format-Strptime +pkgver=1.62 +pkgrel=0 +pkgdesc="Parse and format strp and strf time patterns" +url="http://search.cpan.org/dist/DateTime-Format-Strptime/" +arch="noarch" +license="Artistic-2" +cpandepends="perl-params-validate perl-datetime perl-try-tiny perl-package-deprecationmanager perl-datetime-timezone perl-datetime-locale" +cpanmakedepends=" perl-test-warnings perl-test-fatal " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_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="700b201f3950f86602f06dd64cdb1438 DateTime-Format-Strptime-1.62.tar.gz" +sha256sums="a03478bb832e20854f61a9aea05caf31c2c936cab759eb0b1f854ded4f0c8ae7 DateTime-Format-Strptime-1.62.tar.gz" +sha512sums="beefc1aca04c21943b709d1b766b76e01209ba98173f930ea03fb6fffbda045eeacb7e52d0b8e4a4bc2f9d1b34b9d86006ceec0736a12d1487b51ca1e5c51e90 DateTime-Format-Strptime-1.62.tar.gz" |