Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

proper pkgbuild for dbus-inspector

By: a guest on Dec 2nd, 2010  |  syntax: Bash  |  size: 1.25 KB  |  views: 76  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Alessio Biancalana <dottorblaster@gmail.com>
  2.  
  3. pkgname=dbus-inspector
  4. pkgver=0.2.1
  5. pkgrel=2
  6. pkgdesc="DBus-Inspector is a development tool to show the contents of the DBus message bus."
  7. arch=('i686' 'x86_64')
  8. url="http://www.vitavonni.de/projekte/dbus-inspector"
  9. license=('GPL')
  10. depends=('python2' 'dbus-python' 'pygtk')
  11. makedepends=('python2')
  12. source=("http://people.debian.org/~erich/$pkgname.tgz" "share.patch")
  13. md5sums=('35ef57911898be8a876a5a65478b6673'
  14.          '7a5121f518e37b1862d0084255def736')
  15.  
  16. build() {
  17.   cd "$startdir/src/$pkgname"
  18.  
  19.   patch -p2 < "$startdir/share.patch"
  20.  
  21.   for i in "dbus-inspector" "dbusinspect.py"; do
  22.     sed 's|^#!/usr/bin/python$|#!/usr/bin/python2|' -i "$i" || return 1
  23.   done
  24.  
  25.   module_dir="`python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`" || return 1
  26.  
  27.   install -dm755 "$pkgdir/usr/"{bin,share/dbus-inspector} || return 1
  28.   install -dm755 "$pkgdir/$module_dir" || return 1
  29.  
  30.   install -m755 "dbus-inspector" "$pkgdir/usr/bin/" || return 1
  31.   install -m644 "dbusinspect.py" "$pkgdir/$module_dir/" || return 1
  32.  
  33.   for i in "COPYING" "NEWS" "INSTALL" "dbus-inspector.glade"; do
  34.     install -m644 "$i" "$pkgdir/usr/share/dbus-inspector/" || return 1
  35.   done
  36. }