# Contributor: Aurelien Cedeyn <aurelien.cedeyn@gmail.com>
pkgname=crash
pkgver=5.1.1
pkgrel=1
pkgdesc="Crash: Kernel debugging tool"
arch=('i686')
url="http://people.redhat.com/~anderson/"
license=('GPL')
makedepends=('flex' 'bison' 'zlib' 'ncurses')
source=(http://people.redhat.com/~anderson/crash-$pkgver.tar.gz Makefile)
md5sums=(db0719d0392ee30de3ca97b9e0bb1a5e 0cba37bcadf1d84b9e3942a87499968f)
# We need a custom Makefile because of the hardcoded /usr/bin/install path
# on redhat like distros. Now it's replaced by `which install` in the Makefile
build() {
echo startdir:$startdir srcdir:$srcdir pkgdir:$pkgdir >/tmp/absdebug
cp -f $startdir/Makefile $srcdir/crash-$pkgver/
cd $srcdir/crash-$pkgver
make
make DESTDIR=$pkgdir install
}