updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dbus-inspector / PKGBUILD
blob163a9bfb2029ca31f7880450c95e9aa9a8e37dac
1 # Contributor: Alessio Biancalana <dottorblaster@gmail.com>
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')
16 build() {
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
23   done
26 package(){
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
38   done