summaryrefslogtreecommitdiff
path: root/testing/perl-digest-nilsimsa/PKGBUILD
blob: 40e9ae353e3b911b00dfc4225de9cf0a7af02bb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $Id: PKGBUILD 125252 2011-05-25 19:16:38Z foutrelis $
# Maintainer: kevin <kevin@archlinux.org>
# Contributor: Manolis Tzanidakis

pkgname=perl-digest-nilsimsa
_realname=Digest-Nilsimsa
pkgver=0.06
pkgrel=7
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
  make
  make test
}

package() {
  cd ${srcdir}/${_realname}-${pkgver}
  make install DESTDIR=${pkgdir}
  # remove perllocal.pod and .packlist
  find ${pkgdir} -name perllocal.pod -delete
  find ${pkgdir} -name .packlist -delete
}
# vim: ts=2 sw=2 et ft=sh