aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-timedate
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2017-01-18 14:52:13 +0200
committerTimo Teräs <timo.teras@iki.fi>2017-02-08 08:11:29 +0000
commitfba6678ee94a1c7bb2a371d65499554ff2beb45b (patch)
treec97d6de48f8b8773cb1ffc070f3a849974b3f90a /main/perl-timedate
parent04a56080849851d61b74aea68f42e96864c149fa (diff)
downloadaports-fba6678ee94a1c7bb2a371d65499554ff2beb45b.tar.bz2
aports-fba6678ee94a1c7bb2a371d65499554ff2beb45b.tar.xz
main/perl-timedate: moved from community
add provides for the old incorrect package
Diffstat (limited to 'main/perl-timedate')
-rw-r--r--main/perl-timedate/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/main/perl-timedate/APKBUILD b/main/perl-timedate/APKBUILD
new file mode 100644
index 0000000000..591091622a
--- /dev/null
+++ b/main/perl-timedate/APKBUILD
@@ -0,0 +1,43 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-timedate
+_pkgreal=TimeDate
+pkgver=2.30
+pkgrel=1
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/TimeDate/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+replaces=perl-time-date
+provides="perl-time-date=$pkgver"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/$_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="b1d91153ac971347aee84292ed886c1c TimeDate-2.30.tar.gz"
+sha256sums="75bd254871cb5853a6aa0403ac0be270cdd75c9d1b6639f18ecba63c15298e86 TimeDate-2.30.tar.gz"
+sha512sums="c6aa7d57fbe82260c7455f74f6dfda55f7c93d7a75914bafb9d09ebfb83b5f57f6bc1e332ab0764d7688d857eb022b0f5e92cf5b685d809c63cdfa93a8d2c221 TimeDate-2.30.tar.gz"