Advertisement
Guest User

bootchart2-git

a guest
Jan 24th, 2011
1,212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. # Contributor: DuGi <dugi@irc.pl>
  2. # Contributor: nTia89 <tia.tif AT fastwebnet DOT it>
  3. # Maintainer: Luca Bennati <lucak3 AT gmail DOT com>
  4.  
  5. pkgname=bootchart2-git
  6. pkgrel=1
  7. pkgver=20110123
  8. pkgdesc="Boot Process Performance Visualization"
  9. arch=('i686' 'x86_64')
  10. url="http://github.com/mmeeks/bootchart"
  11. license=('GPL')
  12. provides=('bootchart2')
  13. conflicts=('bootchart2' 'bootchart')
  14. depends=('busybox' 'pygtk')
  15. makedepends=('git')
  16. install=bootchart2-git.install
  17.  
  18. _gitname="bootchart"
  19. _gitroot="git://github.com/mmeeks/$_gitname.git"
  20. _gitbranch="python3"
  21.  
  22. build() {
  23. cd "$srcdir"
  24. msg "Connecting to GIT server...."
  25.  
  26. if [ -d "$_gitname" ] ; then
  27. cd "$_gitname" && git pull origin
  28. msg "The local files are updated."
  29. else
  30. git clone -b $_gitbranch "$_gitroot" "$_gitname"
  31. fi
  32.  
  33. msg "GIT checkout done or server timeout"
  34. msg "Starting make..."
  35.  
  36. rm -rf "$srcdir/$_gitname-build"
  37. git clone -b $_gitbranch "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  38. cd "$srcdir/$_gitname-build"
  39.  
  40. sed -i -e 's|python2.6|python2.7|' \
  41. -e 's|python\b|python2|g' Makefile
  42. sed -i 's|#!/usr/bin/python$|#!/usr/bin/python2|' pybootchartgui.py
  43.  
  44. make
  45. }
  46.  
  47. package() {
  48. cd "$srcdir/$_gitname-build"
  49. make DESTDIR="$pkgdir" install
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement