Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pkgname=crash
- pkgver=6.1.6
- pkgrel=1
- pkgdesc="Kernel crash anali"
- arch=('i686' 'x86_64')
- url="http://people.redhat.com/~anderson"
- license=('GPL')
- depends=(curl glibc)
- source=($url/$pkgname-$pkgver.tar.gz)
- md5sums=('884544e117f08c370b7ec14812547a0f')
- build() {
- # -D_FORTIFY_SOURCE=2 does not let 'crash' compile
- unset CPPFLAGS
- cd "$srcdir/$pkgname-$pkgver"
- make configure
- ./configure -b
- sed -i 's|GDB_CONF_FLAGS=|GDB_CONF_FLAGS=--prefix=/usr|' Makefile
- make gdb_merge # extensions
- }
- package ()
- {
- cd "$srcdir/$pkgname-$pkgver"
- install -d $pkgdir/usr/bin/ $pkgdir/usr/share/man/man8
- install -t $pkgdir/usr/bin/ crash
- install -t $pkgdir/usr/share/man/man8 crash.8
- gzip $pkgdir/usr/share/man/man8/crash.8
- # Makefile does not install man pages and we need to do it manually
- # make DESTDIR="$pkgdir" install
- }
- # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement