updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / swift-git / PKGBUILD
blob6ac8d4d70478c2ea286ca9314a990f47792b96b3
1 # Contributor: Cesar Alcalde <lambda512 _at_ gmail.com>
2 pkgname=swift-git
3 pkgver=20120103
4 pkgrel=1
5 pkgdesc="A pragmatic, cross-platform, user-friendly Jabber/XMPP client. Still in developement"
6 arch=('i686' 'x86_64')
7 url="http://swift.im/"
8 license=('GPL3')
9 groups=()
10 depends=('libidn' 'avahi' 'libxss' 'expat' 'openssl' 'qt' 'hicolor-icon-theme' 'boost-libs' 'libxml2' 'libidn' 'qtwebkit')
11 makedepends=('git' 'scons' 'boost')
12 provides=('swift')
13 conflicts=('swift')
14 replaces=()
15 backup=()
16 options=()
17 install=swift.install
18 source=()
19 noextract=()
20 md5sums=()
22 _gitroot="git://swift.im/swift"
23 _gitname="swift"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else
33     git clone $_gitroot $_gitname
34   fi
36   msg "GIT checkout done or server timeout"
37   msg "Starting make..."
39   rm -rf "$srcdir/$_gitname-build"
40   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41   cd "$srcdir/$_gitname-build"
43   scons optimize=1 debug=0 allow_warnings=1 qt=/usr/ \
44         SWIFT_INSTALLDIR=${pkgdir}/usr ${pkgdir}/usr
46
47 # vim:set ts=2 sw=2 et: