# Contributor: Leszek Cimała <ernierasta@zori.cz>
# Maintainer:
pkgname=diffstat
pkgver=1.61
pkgrel=0
pkgdesc="diffstat reads the output of diff and displays a histogram of the insertions, deletions, and modifications per-file."
url="http://invisible-island.net/diffstat"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="ftp://invisible-island.net/${pkgname}/${pkgname}-${pkgver}.tgz"
_builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}
md5sums="c048a32d55d8bd6724f382baf41f325f  diffstat-1.61.tgz"
sha256sums="25359e0c27183f997b36c9202583b5dc2df390c20e22a92606af4bf7856a55ee  diffstat-1.61.tgz"
sha512sums="48166e1241904b955c0f5543b1f11724a1a91516fcba5ad0603441d985728de3e0fca5f5212704dd0fc9a9e5062788b1b34062869137fd851932233d4abad114  diffstat-1.61.tgz"
