updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / trojita-git / PKGBUILD
blob8c1eafcc1297509d977baea1c0e478ae0f906680
1 # Contributor: Massimiliano Torromeo <Massimiliano DOT Torromeo AT gmail DOT com>
2 pkgname=trojita-git
3 _pkgname=trojita
4 pkgver=20111215
5 pkgrel=1
6 pkgdesc="A QT IMAP email client"
7 arch=(i686 x86_64)
8 url="http://trojita.flaska.net"
9 license=('GPL')
10 depends=('qt')
11 makedepends=('git' 'cmake')
13 _gitroot="git://gitorious.org/${_pkgname}/${_pkgname}.git"
14 _gitname=$_pkgname
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
25         fi
27         msg "GIT checkout done or server timeout"
28         msg "Starting make..."
30         rm -rf "$srcdir/$_gitname-build"
31         git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32         cd "$srcdir/$_gitname-build"
34         qmake
35         make
37         install -D -m755 src/Gui/trojita "$pkgdir/usr/bin/trojita"
38         install -D -m644 src/Gui/trojita.desktop "$pkgdir/usr/share/applications/trojita.desktop"
39         install -D -m644 src/icons/trojita.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/trojita.svg"