PKGBUILDs/community/perl-digest-md5/PKGBUILD

29 lines
822 B
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# Contributor: Ashok `ScriptDevil` Gautham <ScriptDevil@gmail.com>
pkgname=perl-digest-md5
pkgver=2.39
pkgrel=1
pkgdesc="Digest::MD5::Perl - Perl implementation of Ron Rivests MD5 Algorithm"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/Digest-MD5"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
options=(!emptydirs)
source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-MD5-$pkgver.tar.gz)
md5sums=('bbfbded36fcf58d0b993228ff74c9a98')
build() {
cd "$srcdir/Digest-MD5-$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
}