diff options
Diffstat (limited to 'pcr/perl-date-simple/PKGBUILD')
-rw-r--r-- | pcr/perl-date-simple/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pcr/perl-date-simple/PKGBUILD b/pcr/perl-date-simple/PKGBUILD new file mode 100644 index 000000000..2912557f7 --- /dev/null +++ b/pcr/perl-date-simple/PKGBUILD @@ -0,0 +1,43 @@ +# Contributor (Arch): Andreas dot Wagner at em dot uni-frankfurt dot de +# Contributor : Márcio Silva <coadde@parabola.nu> + +pkgname='perl-date-simple' +_perlname='Date-Simple' +pkgver='3.03' +pkgrel='2' +pkgdesc="A simple date object" +arch=('any') +url='http://search.cpan.org/~izut/Date-Simple' +license=('GPL2') +depends=('perl') +options=('!emptydirs') +source=("http://search.cpan.org/CPAN/authors/id/I/IZ/IZUT/${_perlname}-${pkgver}.tar.gz") + +build() { + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + cd "${srcdir}/${_perlname}-${pkgver}" + perl Makefile.PL + make +} + +test(){ + cd "${srcdir}/${_perlname}-${pkgver}" + make test +} + +package() { + export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + cd "${srcdir}/${_perlname}-${pkgver}" + make DESTDIR="$pkgdir" install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + +md5sums=('436049dc2c7dfd8423d8bcc807248b31') |