PKGBUILDs/extra/perl-date-manip/PKGBUILD

29 lines
902 B
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# $Id: PKGBUILD 28340 2009-02-28 19:18:23Z kevin $
# Maintainer: Kevin Piche <kevin@archlinux.org>
# Contributor: Andrew Simmons <andrew.simmons@gmail.com>
pkgname=perl-date-manip
_realname=Date-Manip
pkgver=5.54
pkgrel=1
pkgdesc="Date::Manip - date manipulation routines"
arch=(i686 x86_64)
license=('PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl>=5.10.0')
options=(!emptydirs)
source=(http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/${_realname}-${pkgver}.tar.gz)
md5sums=('16c343329bad644b17f4f8ec5fb243cf')
build() {
cd ${srcdir}/${_realname}-${pkgver}
# install module in vendor directories.
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
make install DESTDIR=${pkgdir} || return 1
# remove perllocal.pod and .packlist
find ${pkgdir} -name perllocal.pod -delete
find ${pkgdir} -name .packlist -delete
}