# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
setvar pkgname = 'perl-date-manip'
setvar _pkgreal = 'Date-Manip'
setvar pkgver = '6.57'
setvar pkgrel = '0'
setvar pkgdesc = ""Date manipulation routines""
setvar url = ""http://search.cpan.org/dist/Date-Manip/""
setvar arch = ""noarch""
setvar license = ""GPL PerlArtistic""
setvar cpandepends = ""perl-yaml-syck""
setvar cpanmakedepends = ""perl-test-inter   ""
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends perl-module-build""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/$_pkgreal-$pkgver.tar.gz""

setvar _builddir = ""$srcdir/$_pkgreal-$pkgver""

proc prepare {
	cd $_builddir'
	PERL_MM_USE_DEFAULT=1' perl Makefile.PL INSTALLDIRS=vendor
}

proc build {
	cd $_builddir
	make && make test
}

proc package {
	cd $_builddir
	make DESTDIR="$pkgdir" install || return 1
	find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete
}

setvar md5sums = ""cd87e060f87662fc4cfebe7b3867ddf6  Date-Manip-6.57.tar.gz""
setvar sha256sums = ""864c1e71a62db5f58fd570ddf82259feb025203a58187fdddec96824f54e2f76  Date-Manip-6.57.tar.gz""
setvar sha512sums = ""c2dbe195cfcc4c60f5b120fb4af0d487a6d3713b874f48a78c0ebf32364c2062c68e03bbc72a9ad54c25a3b6dada7a3b2041f16755665e93206de1320a88ba9a  Date-Manip-6.57.tar.gz""