# Template file for 'perl-Algorithm-Diff'
pkgname=perl-Algorithm-Diff
version=1.1903
revision=3
wrksrc="${pkgname#*-}-$version"
build_style=perl-module
hostmakedepends="perl"
makedepends="perl"
depends="perl"
short_desc='Algorithm::Diff - Compute differences between two files / lists'
maintainer="Enguerrand de Rochefort <voidlinux@rochefort.de>"
license="Artistic-1.0-Perl, GPL-1.0-or-later"
homepage="https://metacpan.org/release/Algorithm-Diff"
distfiles="${CPAN_SITE}/Algorithm/${pkgname#*-}-${version}.tar.gz"
checksum=30e84ac4b31d40b66293f7b1221331c5a50561a39d580d85004d9c1fff991751

# Liberation
# Some code has been taken from:
# https://git.parabola.nu/abslibre.git/tree/libre/perl-algorithm-diff/PKGBUILD
post_patch() {
	# To remove unlicensed files
	rm -rv {htmldiff.pl,lib/Algorithm/DiffOld.pm,t}
}
