# Contributor: Natanael Copa # Maintainer: Natanael Copa setvar pkgname = 'perl-datetime-format-mail' setvar pkgver = '0.3001' setvar pkgrel = '0' setvar pkgdesc = ""DateTime::Format::Mail perl module"" setvar url = ""http://search.cpan.org/dist/DateTime-Format-Mail/"" setvar arch = ""noarch"" setvar license = ""GPLv2 or Artistic"" setvar depends = ""perl perl-datetime perl-params-validate"" setvar makedepends = ""perl-dev"" setvar install = """" setvar subpackages = ""$pkgname-doc"" setvar source = ""http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-Mail-$pkgver.tar.gz"" setvar _builddir = ""$srcdir"/DateTime-Format-Mail-$pkgver" proc prepare { local i cd $_builddir for i in $source { case (i) { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } } proc build { cd $_builddir' PERL_MM_USE_DEFAULT=1' perl Makefile.PL INSTALLDIRS=vendor || return 1 make && make test || return 1 } proc package { cd $_builddir make DESTDIR="$pkgdir" install || return 1 find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete } setvar sha512sums = ""7ad356f86bbc8c854d25806e1205834fe4c0f4f9a1ab065b81e72ef75a502f31ab82c166451e6d108faa3ceceae3103a15f4f9ad908c483bba4f068d0aad46ef DateTime-Format-Mail-0.3001.tar.gz""