View difference between Paste ID: eaJFBDNs and
SHOW:
|
|
- or go back to the newest paste.
1 | - | |
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 | } |