updated on Wed Jan 11 20:01:35 UTC 2012
[aur-mirror.git] / winswitch / PKGBUILD
blob66b3272d53f007b502169a7bce495c49e8bcf8d2
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: F0ruD <fzerorubigd[at]gmail[dot]com>
4 pkgname=winswitch
5 pkgver=0.12.8
6 pkgrel=1
7 pkgdesc="Window-Switch is a client server tool to start and control virtual desktops"
8 arch=('any')
9 url="http://winswitch.org/"
10 license=('GPL3')
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')
24 build() {
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
34 package() {
35   cd "$srcdir/$pkgname-$pkgver"
37   python2 setup.py install --root="$pkgdir/"
39   # python2 fixes
40   sed -i "s/env python/&2/" `grep -rl "env python" "$pkgdir"`