1 # Contributor: Nebulosa <nebulosa2007 na yandekse>
3 pkgname=gnome-connection-manager
6 pkgdesc="Tabbed ssh connection manager for gtk+ environments."
8 url="http://kuthulu.com/gcm/"
10 depends=('python2' 'pygtk' 'expect' 'vte' 'openssh')
11 source=("http://kuthulu.com/gcm/gnome-connection-manager_${pkgver}_all.tgz" "$pkgname.desktop")
13 '874c2f16774d885a5ef70f1fd4be0b16'
14 '7078085c58ce264b357df22c7bc09730'
18 _pyexec=${srcdir}/gcm-${pkgver}/gnome_connection_manager.py
19 sed -i "s|BASE_PATH = os.path.*|BASE_PATH = '/usr/share/$pkgname'|" $_pyexec
20 sed -i "s|glade_dir = \"\"|glade_dir = BASE_PATH|" $_pyexec
21 sed -i "s|env python\s*$|env python2|" $_pyexec
25 _datadir=$pkgdir/usr/share/$pkgname
26 _docdir=$pkgdir/usr/share/doc/$pkgname
27 _bindir=$pkgdir/usr/bin
28 mkdir -p $_datadir $_docdir $_bindir
29 cp -r $srcdir/gcm-${pkgver}/* $_datadir/
30 find $_datadir -type f -exec chmod 0644 {} \;
31 find $_datadir -type d -exec chmod 0755 {} \;
32 chmod 0755 $_datadir/*.py $_datadir/*.expect
33 ln -sf ${_datadir/$pkgdir/}/gnome_connection_manager.py $pkgdir/usr/bin/$pkgname
34 ln -sf ${_datadir/$pkgdir/}/README.txt $_docdir/README
35 install -D $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop