PKGBUILDs/extra/perl-digest-nilsimsa/PKGBUILD

32 lines
943 B
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# $Id: PKGBUILD 49937 2009-08-17 00:15:25Z kevin $
# Maintainer: eric <eric@archlinux.org>
# Contributor: Manolis Tzanidakis
pkgname=perl-digest-nilsimsa
_realname=Digest-Nilsimsa
pkgver=0.06
pkgrel=4
pkgdesc="Perl version of Nilsimsa code."
arch=('i686' 'x86_64')
license=('LGPL')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl>=5.10.0')
options=(!emptydirs)
source=(http://www.cpan.org/authors/id/V/VI/VIPUL/${_realname}-${pkgver}.tar.gz)
replaces=('digest-nilsimsa')
provides=('digest-nilsimsa')
md5sums=('08e940bd7f5d1167ef3fd1aa7ce234d7')
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
}
# vim: ts=2 sw=2 et ft=sh