# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: kevin <kevin@archlinux.org>
# Contributor: Manolis Tzanidakis

pkgname=perl-digest-nilsimsa
pkgver=0.06
pkgrel=21
pkgdesc="Perl version of Nilsimsa code"
arch=('x86_64')
license=('LGPL')
url="https://search.cpan.org/dist/Digest-Nilsimsa/"
depends=('perl')
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/V/VI/VIPUL/Digest-Nilsimsa-$pkgver.tar.gz")
md5sums=('08e940bd7f5d1167ef3fd1aa7ce234d7')

build() {
  cd Digest-Nilsimsa-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Digest-Nilsimsa-$pkgver
  make test
}

package() {
  cd Digest-Nilsimsa-$pkgver
  make install DESTDIR="$pkgdir"
}
# vim: ts=2 sw=2 et ft=sh
