aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-date-manip
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-date-manip')
-rw-r--r--main/perl-date-manip/APKBUILD37
1 files changed, 20 insertions, 17 deletions
diff --git a/main/perl-date-manip/APKBUILD b/main/perl-date-manip/APKBUILD
index 312d059183..82c93f21ca 100644
--- a/main/perl-date-manip/APKBUILD
+++ b/main/perl-date-manip/APKBUILD
@@ -1,35 +1,38 @@
-# Contributor: Mika Havela <mika.havela@gmail.com>
+# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-date-manip
-_realname=Date-Manip
-pkgver=6.30
+_pkgreal=Date-Manip
+pkgver=6.31
pkgrel=0
-pkgdesc="Perl - Date manipulation routines"
-url="http://search.cpan.org/~sbeck/$_realname-$pkgver/"
+pkgdesc="Date manipulation routines"
+url="http://search.cpan.org/dist/Date-Manip/"
arch="noarch"
-license="Artistic GPL"
-depends="perl perl-test-pod perl-test-inter perl-yaml-syck perl-test-pod-coverage"
-makedepends="perl-dev"
-#subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/$_realname-$pkgver.tar.gz"
+license="GPL PerlArtistic"
+cpandepends="perl-yaml-syck"
+cpanmakedepends="perl-test-inter "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/$_pkgreal-$pkgver.tar.gz"
-_builddir="$srcdir/$_realname-$pkgver"
+_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"
- perl Build.PL || return 1
- ./Build test || return 1
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ ./Build && ./Build test
}
package() {
cd "$_builddir"
- ./Build destdir="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
+ ./Build install destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="6a0e74703a1b0931e5208b0b93ef689a Date-Manip-6.30.tar.gz"
+md5sums="d2eee5a84750a003d1f884cfbba7d7d7 Date-Manip-6.31.tar.gz"