1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: F0ruD <fzerorubigd[at]gmail[dot]com>
7 pkgdesc="Window-Switch is a client server tool to start and control virtual desktops"
9 url="http://winswitch.org/"
11 depends=('pygtk' 'pycrypto' 'twisted' 'pyasn1' 'hicolor-icon-theme' 'desktop-file-utils')
12 optdepends=('nautilus: nautilus sendto'
13 'thunar: thunar sendto'
14 'parti-all: xpra support'
15 'nss-mdns: mdns support'
16 'nxproxy: proxy support'
17 'python-netifaces: firewall detection'
18 'java-environment: graphical server signatures')
19 options=('!emptydirs')
20 install="$pkgname.install"
21 source=("${url}src/$pkgname-$pkgver.src.tar.bz2")
22 md5sums=('33604522afeccbfd231f61f0da62a4fc')
25 cd "$srcdir/$pkgname-$pkgver"
27 # replace libexec path
28 sed -i "s|\(%s/\)libexec|\1share|" setup.py
29 sed -i "s|\(usr/\)libexec|\1share|g" `grep -Erl /usr/libexec .`
31 python2 setup.py build
35 cd "$srcdir/$pkgname-$pkgver"
37 python2 setup.py install --root="$pkgdir/"
40 sed -i "s/env python/&2/" `grep -rl "env python" "$pkgdir"`