1 # Contributor: Jan-Erik Rediger <badboy@archlinux.us>
2 # Contributor: Nezmer <me@nezmer.info>
3 # Contributor: Vzlom <gvzlom@gmail.com>
7 pkgdesc="Qt4 cross-platform client for Twitter (SVN snapshots)"
9 url="http://code.google.com/p/qwit/"
11 depends=('qt' 'qoauth' 'qca-ossl')
12 makedepends=('subversion')
19 _svntrunk=http://qwit.googlecode.com/svn/trunk
20 _svnmod=qwit-read-only
24 if [ -d $_svnmod/.svn ]; then
25 (cd $_svnmod && svn up -r $pkgver)
27 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
29 msg "SVN checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$_svnmod-build"
33 mkdir "$_svnmod-build"
34 cp -r $_svnmod "$_svnmod-build"
35 cd "$_svnmod-build/$_svnmod"
36 # Disable remembering position
37 sed -i 's|config->position = pos()|//config->position = pos()|' src/MainWindow.cpp
38 qmake PREFIX=/usr || return 1
40 make INSTALL_ROOT="$pkgdir" install