Advertisement
Guest User

Crash Makefile (with makedepends)

a guest
Jan 29th, 2011
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.77 KB | None | 0 0
  1. # Contributor: Aurelien Cedeyn <aurelien.cedeyn@gmail.com>
  2.  
  3. pkgname=crash
  4. pkgver=5.1.1
  5. pkgrel=1
  6. pkgdesc="Crash: Kernel debugging tool"
  7. arch=('i686')
  8. url="http://people.redhat.com/~anderson/"
  9. license=('GPL')
  10. makedepends=('flex' 'bison' 'zlib' 'ncurses')
  11. source=(http://people.redhat.com/~anderson/crash-$pkgver.tar.gz Makefile)
  12. md5sums=(db0719d0392ee30de3ca97b9e0bb1a5e 0cba37bcadf1d84b9e3942a87499968f)
  13.  
  14. # We need a custom Makefile because of the hardcoded /usr/bin/install path
  15. # on redhat like distros. Now it's replaced by `which install` in the Makefile
  16.  
  17. build() {
  18.     echo startdir:$startdir srcdir:$srcdir pkgdir:$pkgdir >/tmp/absdebug
  19.     cp -f $startdir/Makefile $srcdir/crash-$pkgver/
  20.     cd $srcdir/crash-$pkgver
  21.     make
  22.     make DESTDIR=$pkgdir install
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement