updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / qwit-ng / PKGBUILD
blob05f93d4a4279d69c56f77a8202903a784effbd31
1 # Contributor: Cochise Cesar <cochisepoeta@gmail.com>
3 pkgname=qwit-ng
4 pkgver=213
5 pkgrel=1
6 pkgdesc="Qt4 cross-platform client for Twitter - branch is the most atual with new features"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/qwit/"
9 license=('GPL3')
10 depends=('qt' 'openssl')
11 provides=('qwit')
12 conflicts=('qwit')
13 replaces=('qwit')
15 _svntrunk=http://qwit.googlecode.com/svn/branches/ng/
16 _svnmod=qwit
18 build() {
19   cd "$srcdir"
20   msg "Connecting to SVN server...."
22   if [ -d "$_svnmod/.svn" ] ; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn checkout $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
27   msg "SVN checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$_svnmod-build"
31   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
32   cd "$srcdir/$_svnmod-build"
34   qmake PREFIX=/usr || return 1
35   make || return 1
36   make INSTALL_ROOT="$pkgdir" install || return 1