# Contributer: Baruch Burstein <bmburstein at gmail dot com>

_realname=Algorithm-Diff
pkgname=perl-${_realname}
pkgver=1.201
pkgrel=1
pkgdesc="Compute 'intelligent' differences between two files / lists"
arch=('any')
url="https://metacpan.org/author/TYEMQ${_realname}-${pkgver}"
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://cpan.metacpan.org/authors/id/R/RJ/RJBS/${_realname}-${pkgver}.tar.gz")
sha256sums=('0022da5982645d9ef0207f3eb9ef63e70e9713ed2340ed7b3850779b0d842a7d')

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

package() {
  cd ${_realname}-${pkgver}
  make install DESTDIR="$pkgdir"
}
