updated on Sun Jan 15 12:00:22 UTC 2012
[aur-mirror.git] / qwit-svn / PKGBUILD
blob1c3881a5d761a25ac6e62323827124c349db483d
1 # Contributor: Jan-Erik Rediger <badboy@archlinux.us>
2 # Contributor: Nezmer <me@nezmer.info>
3 # Contributor: Vzlom <gvzlom@gmail.com>
4 pkgname=qwit-svn
5 pkgver=353
6 pkgrel=1
7 pkgdesc="Qt4 cross-platform client for Twitter (SVN snapshots)"
8 arch=('i686' 'x86_64')
9 url="http://code.google.com/p/qwit/"
10 license=('GPL3')
11 depends=('qt' 'qoauth' 'qca-ossl')
12 makedepends=('subversion')
13 provides=('qwit')
14 conflicts=('qwit')
15 replaces=('qwit')
16 source=()
17 md5sums=()
19 _svntrunk=http://qwit.googlecode.com/svn/trunk
20 _svnmod=qwit-read-only
22 build() {
23         cd "$srcdir"
24         if [ -d $_svnmod/.svn ]; then
25                                         (cd $_svnmod && svn up -r $pkgver)
26         else
27                                         svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28         fi
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
39         make || return 1
40         make INSTALL_ROOT="$pkgdir" install