diff options
author | Massimiliano Torromeo | 2013-06-20 16:33:26 +0200 |
---|---|---|
committer | Massimiliano Torromeo | 2013-06-20 16:37:20 +0200 |
commit | 1e2d238017bcd993bdb7dc4fcc752f6bc4377221 (patch) | |
tree | 58484976e6c2ebe7386b8410e25b7c7248871f1e | |
parent | fa22c277ec11080048c5a533f0347f0885a506d2 (diff) | |
download | aur-1e2d238017bcd993bdb7dc4fcc752f6bc4377221.tar.gz |
Updated trojita
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 13 insertions, 24 deletions
@@ -1,9 +1,9 @@ # Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> pkgname=trojita-git -pkgver=20121220 +pkgver=4878.d6d8fa5 pkgrel=1 -pkgdesc="A QT IMAP email client" +pkgdesc="A fast QT IMAP e-mail client" arch=(i686 x86_64) url="http://trojita.flaska.net" license=('GPL') @@ -12,32 +12,21 @@ conflicts=('trojita') provides=('trojita') makedepends=('git' 'cmake') -_gitroot="git://anongit.kde.org/trojita.git" -_gitname="trojita" +source=('git://anongit.kde.org/trojita.git') +md5sums=('SKIP') -build() { - cd "$srcdir" - msg "Connecting to GIT server...." - - if [ -d $_gitname ] ; then - cd $_gitname && git pull origin - msg "The local files are updated." - else - git clone $_gitroot - fi - - msg "GIT checkout done or server timeout" - msg "Starting make..." - - rm -rf "$srcdir/$_gitname-build" - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" - cd "$srcdir/$_gitname-build" +pkgver() { + cd "$srcdir/trojita" + echo $(git rev-list --count master).$(git rev-parse --short master) +} - qmake PREFIX=/usr +build() { + cd "$srcdir/trojita" + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release . make } package() { - cd "$srcdir/$_gitname-build" - make install INSTALL_ROOT="$pkgdir" + cd "$srcdir/trojita" + make install DESTDIR="$pkgdir" } |