# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=dwdiff
pkgver=2.1.2
pkgrel=2
pkgdesc="A front-end for the diff program that operates at the word level instead of the line level"
arch=('x86_64')
url="http://os.ghalkes.nl/dwdiff.html"
depends=('diffutils' 'icu')
license=('GPL')
source=("http://os.ghalkes.nl/dist/$pkgname-$pkgver.tar.bz2")
sha256sums=('3201fd459164ebbb538a0b21ce17d955f2fa3babe37367b2e92f7f912cfac692')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr --without-dwfilter
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make prefix="$pkgdir"/usr install
}
