1 # Contributor: Alessio Biancalana <dottorblaster@gmail.com>
6 pkgdesc="DBus-Inspector is a development tool to show the contents of the DBus message bus."
8 url="http://www.vitavonni.de/projekte/dbus-inspector"
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')
17 cd "$startdir/src/$pkgname"
19 patch -p2 < "$startdir/share.patch"
21 for i in "dbus-inspector" "dbusinspect.py"; do
22 sed 's|^#!/usr/bin/python$|#!/usr/bin/python2|' -i "$i" || return 1
27 cd "$startdir/src/$pkgname"
28 module_dir="`python2 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`" || return 1
30 install -dm755 "$pkgdir/usr/"{bin,share/dbus-inspector} || return 1
31 install -dm755 "$pkgdir/$module_dir" || return 1
33 install -m755 "dbus-inspector" "$pkgdir/usr/bin/" || return 1
34 install -m644 "dbusinspect.py" "$pkgdir/$module_dir/" || return 1
36 for i in "COPYING" "NEWS" "INSTALL" "dbus-inspector.glade"; do
37 install -m644 "$i" "$pkgdir/usr/share/dbus-inspector/" || return 1