This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

crash.PKGBUILD

By: a guest on Apr 6th, 2013  |  syntax: Bash  |  size: 0.87 KB  |  views: 29  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=crash
  2. pkgver=6.1.6
  3. pkgrel=1
  4. pkgdesc="Kernel crash anali"
  5. arch=('i686' 'x86_64')
  6. url="http://people.redhat.com/~anderson"
  7. license=('GPL')
  8. depends=(curl glibc)
  9. source=($url/$pkgname-$pkgver.tar.gz)
  10. md5sums=('884544e117f08c370b7ec14812547a0f')
  11.  
  12. build() {
  13.   # -D_FORTIFY_SOURCE=2 does not let 'crash' compile
  14.   unset CPPFLAGS
  15.  
  16.   cd "$srcdir/$pkgname-$pkgver"
  17.   make configure
  18.   ./configure -b
  19.  
  20.   sed -i 's|GDB_CONF_FLAGS=|GDB_CONF_FLAGS=--prefix=/usr|' Makefile
  21.   make gdb_merge # extensions
  22. }
  23.  
  24. package ()
  25. {
  26.   cd "$srcdir/$pkgname-$pkgver"
  27.   install -d $pkgdir/usr/bin/ $pkgdir/usr/share/man/man8
  28.   install -t $pkgdir/usr/bin/ crash
  29.   install -t $pkgdir/usr/share/man/man8 crash.8
  30.   gzip $pkgdir/usr/share/man/man8/crash.8
  31. #  Makefile does not install man pages and we need to do it manually
  32. #  make DESTDIR="$pkgdir" install
  33. }
  34.  
  35. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data