# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=colordiff
pkgver=1.0.21
pkgrel=0
pkgdesc="Color terminal highlighter for diff files"
url="https://www.colordiff.org"
arch="noarch"
license="GPL-2.0-or-later"
depends="diffutils less perl"
makedepends="lynx xmlto"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/daveewart/colordiff/archive/v$pkgver.tar.gz"

build() {
	make doc
}

check() {
	make -C verify
}

package() {
	make install \
		DESTDIR="$pkgdir" \
		INSTALL_DIR=/usr/bin \
		MAN_DIR=/usr/share/man/man1
}

sha512sums="
47f3d1a4b081086af6602fae73cd5085faad5e4b1cc3fe798681019288a72f763fba82f80699c278f11cc107c1f98626f5ed450f094ed12188102287c7059fca  colordiff-1.0.21.tar.gz
"
