updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / terminator-dropdown-bzr / PKGBUILD
blob1ac5d2b346953158d81f4801b8c4d8e789e56a66
1 # Maintainer: Peter B. Jørgensen <peterbjorgensen@gmail.com>
2 # PKGBUILD is heavily based on terminator-bzr by:
3 # Orig Maintainer:  TDY <tdy@gmx.com>
4 # Contributor: zhuqin <zhuqin83@gmail.com>
6 pkgname=terminator-dropdown-bzr
7 pkgver=1024
8 pkgrel=1
9 pkgdesc="A tool for arranging multiple terminals in a single window - dropdown bzr branch"
10 arch=('i686' 'x86_64')
11 url="http://www.tenshu.net/terminator/"
12 license=('GPL')
13 depends=('hicolor-icon-theme' 'pygtk' 'vte' 'xdg-utils')
14 makedepends=('bzr' 'desktop-file-utils' 'gettext' 'intltool')
15 optdepends=('gnome-python: gnome-terminal profile support')
16 provides=('terminator=0.13')
17 conflicts=('terminator')
18 install=terminator.install
20 #_bzrtrunk=http://bazaar.launchpad.net/~gnome-terminator/terminator/trunk
21 _bzrtrunk=https://code.launchpad.net/~peterbjorgensen/terminator/dropdown
22 _bzrmod=terminator
24 build() {
25   cd "$srcdir"
27   msg "Connecting to $_bzrtrunk..."
28   if [[ -d $_bzrmod ]]; then
29     bzr up $_bzrtrunk
30     msg2 "Local files updated"
31   else
32     bzr co $_bzrtrunk $_bzrmod -r $pkgver
33     msg2 "BZR checkout done"
34   fi
36   rm -rf $_bzrmod-build
37   cp -r $_bzrmod $_bzrmod-build
38   cd $_bzrmod-build
40   msg "Starting make..."
41   python setup.py build || return 1
44 package() {
45   cd "$srcdir/$_bzrmod-build"
46   python setup.py install --prefix=/usr --root="$pkgdir"
47   rm -f "$pkgdir/usr/share/icons/hicolor/icon-theme.cache"