updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-connection-manager / PKGBUILD
blob595100e488cb7bfee37eca4a52798d51be4f7027
1 # Contributor: Nebulosa <nebulosa2007 na yandekse>
3 pkgname=gnome-connection-manager
4 pkgver=0.9.7
5 pkgrel=2
6 pkgdesc="Tabbed ssh connection manager for gtk+ environments."
7 arch=('i686' 'x86_64')
8 url="http://kuthulu.com/gcm/"
9 license=('GPL')
10 depends=('python2' 'pygtk' 'expect' 'vte' 'openssh')
11 source=("http://kuthulu.com/gcm/gnome-connection-manager_${pkgver}_all.tgz" "$pkgname.desktop")
12 md5sums=(
13         '874c2f16774d885a5ef70f1fd4be0b16'
14         '7078085c58ce264b357df22c7bc09730'
17 build() {
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
24 package() {
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