updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / qterm-svn / PKGBUILD
blobad2a98bc2b6e5ba106b2d49d47401bc589a34514
1 # Maintainer: Xiaoan Wu <adaptee at gmail dot com>
3 pkgname=qterm-svn
4 pkgver=1292
5 pkgrel=1
6 pkgdesc="BBS client for Linux, written in Qt"
7 arch=('i686' 'x86_64')
8 url="http://www.qterm.org"
9 license=('GPL')
10 depends=('qt' 'openssl')
11 makedepends=('cmake' 'subversion')
12 optdepends=('phonon')
13 provides=('qterm')
14 conflicts=('qterm')
16 _svntrunk='https://svn.qterm.org/svnroot/qterm/trunk/qterm-qt4'
17 _svnmod="qterm-qt4"
19 build()
21     cd "$srcdir"
23     if [ -d $_svnmod/.svn ]; then
24         (cd $_svnmod && svn up -r $pkgver)
25     else
26         svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27     fi
29     msg "SVN checkout done or server timeout"
30     msg "Starting make..."
32     rm -rf "$srcdir/$_svnmod-build"
33     cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
34     cd "$srcdir/$_svnmod-build"
36     # temporary workaround with FindQt4.cmake
37     sed -i '/QT_MIN_VERSION/d' ./CMakeLists.txt
39     cmake -DCMAKE_INSTALL_PREFIX=/usr . || return 1
40     make || return 1
43 package ()
45     cd "$srcdir/$_svnmod-build"
46     make DESTDIR="$pkgdir/" install