# $Id: PKGBUILD 124981 2014-12-30 19:31:10Z jlichtblau $
# Maintainer: Eric Bélanger <eric@archlinux.org>
# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>

pkgname=colordiff
pkgver=1.0.13
pkgrel=3
pkgdesc="A Perl script wrapper for 'diff' that produces the same output but with pretty 'syntax' highlighting"
arch=('any')
url="http://www.colordiff.org/"
license=('GPL')
depends=('perl' 'diffutils')
backup=('etc/colordiffrc' 'etc/colordiffrc-lightbg')
source=(http://www.colordiff.org/${pkgname}-${pkgver}.tar.gz{,.sig})
sha1sums=('64e369aed2230f3aa5f1510b231fcac270793c09'
          'SKIP')
validpgpkeys=('AEC593600A357F6666E982E49E106769CD28DA92') #Dave Ewart <davee@sungate.co.uk>

package() {
  cd ${pkgname}-${pkgver}

  make DESTDIR="${pkgdir}" INSTALL_DIR=/usr/bin MAN_DIR=/usr/share/man/man1 install
  install -m644 colordiffrc-lightbg "${pkgdir}/etc/colordiffrc-lightbg"
}
