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

build() {
	cd "$builddir"
	make doc
}

check() {
	cd "$builddir"
	make -C verify
}

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

sha512sums="483b29d6dbb53e0c31cfb096808a7b9dde64891180bc29262d02761af91d0d5cf5c0d0972ae678a8ea868b935b02424390166a1141a32320f222635c5184d360  colordiff-1.0.18.tar.gz"
