blob: 438c552576ee926a59650c3082188741623b0819 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Massimiliano Torromeo <Massimiliano DOT Torromeo AT gmail DOT com>
pkgname=trojita-git
_pkgname=trojita
pkgver=20121211
pkgrel=1
pkgdesc="A QT IMAP email client"
arch=(i686 x86_64)
url="http://trojita.flaska.net"
license=('GPL')
depends=('qt')
makedepends=('git' 'cmake')
_gitroot="git://anongit.kde.org/trojita.git"
_gitname=$_pkgname
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"
qmake
make
install -D -m755 src/Gui/trojita "$pkgdir/usr/bin/trojita"
install -D -m644 src/Gui/trojita.desktop "$pkgdir/usr/share/applications/trojita.desktop"
install -D -m644 src/icons/trojita.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/trojita.svg"
}
|