updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qterminal-git / PKGBUILD
bloba3c2cc410c7e2c1d8616e5f2f31bd08955ab6a22
1 # Maintainer: vicky91 <vickypaiers@gmail.com>
2 pkgname=qterminal-git
3 pkgver=20111225
4 pkgrel=1
5 pkgdesc="Light QT-based  terminal emulator"
6 arch=('i686' 'x86_64')
7 url="https://gitorious.org/qterminal"
8 license=('GPLv2')
9 depends=('qtermwidget-git')
10 makedepends=('git')
11 install=
13 _gitroot=https://git.gitorious.org/qterminal/qterminal.git
14 _gitname=qterminal
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [[ -d "$_gitname" ]]; then
21     cd "$_gitname" && git pull origin
22     msg "The local files are updated."
23   else
24     git clone "$_gitroot" "$_gitname"
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting build..."
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   cmake -DCMAKE_INSTALL_PREFIX=/usr
35   make
39 package() {
40   cd "$srcdir/$_gitname-build"
41   make DESTDIR="$pkgdir/" install
44 # vim:set ts=2 sw=2 et: