# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

pkgname='jdebp-redo'
pkgdesc="Jonathan de Boyne Pollard's implmentation of the redo build system"
url="http://homepage.ntlworld.com/jonathan.deboynepollard/Softwares/redo.html"
pkgver=1.2
license=('custom:ISC') # tri-licensed under the ISC license, 2-clause BSD license, and the MIT Expat license
source=(http://homepage.ntlworld.com/jonathan.deboynepollard/Softwares/redo-${pkgver}.tar.bz2)
md5sums=('3bbdd198b8eb4bdddc9ae39f506b2647')

pkgrel=1
arch=(x86_64 i686)
depends=(gcc-libs)
provides=('redo')
conflicts=('redo')

build() {
  cd "$srcdir"
  package/compile
}

package() {
  cd "$srcdir"
  package/export "$pkgdir/usr/"
  mkdir "$pkgdir/usr/share"
  mv "$pkgdir/usr/man" "$pkgdir/usr/share/man"
  install -Dm644 source/COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
