# $Id: PKGBUILD 112983 2014-06-10 19:03:57Z anatolik $ # Maintainer: Anatol Pomozov # Contributor: Bernhard Walle # Contributor: Michael Eckert # Contributor: Mathieu Pasquet pkgname=crash pkgver=7.0.7 pkgrel=1 pkgdesc='Linux kernel crashdump analysis tool' url='http://people.redhat.com/~anderson' arch=(i686 x86_64) license=(GPL) depends=(xz ncurses zlib) source=(http://people.redhat.com/~anderson/crash-$pkgver.tar.gz) sha256sums=('c473ea9623787bee8fecf2e4d0caa9301a9462c26243e897ad202bf0dc3e9a07') prepare() { cd crash-$pkgver make gdb_unzip sed -i '/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/' gdb-7.6/libiberty/configure } build() { cd crash-$pkgver make } package() { cd crash-$pkgver mkdir -p "$pkgdir"/usr/bin "$pkgdir"/usr/share/man/man8 install crash "$pkgdir"/usr/bin/ install crash.8 "$pkgdir"/usr/share/man/man8/ }