updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / vacuum-svn / PKGBUILD
blob43c8374b627e221bf81e8727898d547b0cac3a5e
1 # Contributor: Timur Antipin < kosmocap (at) gmail.com >
3 pkgname=vacuum-svn
4 pkgver=1672
5 pkgrel=1
6 pkgdesc='Cross-platform Qt-based jabber client'
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/vacuum-im/"
9 license=('GPL3')
10 conflicts=('vacuum')
11 provides=('vacuum')
12 replaces=('vacuum')
13 depends=('qt>=4.5.2' 'openssl' 'libidn' 'zlib' 'libxss' 'qtwebkit')
14 optdepends=('libminizip: using system library')
15 makedepends=('subversion' 'cmake')
16 source=()
18 _svntrunk='http://vacuum-im.googlecode.com/svn/trunk/'
19 _svnmod='vacuum-im-svn'
21 build() {
22   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"
31   mkdir -p "${_svnmod}-build" || return 1
32   cd "${_svnmod}-build" || return 1
34   cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release "../${_svnmod}" || return 1
36   msg "Starting make..."
37   make || return 1
41 package() {
42   cd "${srcdir}/${_svnmod}-build"
43   
44   msg "Installing to package directory..."
45   make DESTDIR="${pkgdir}" install || return 1
47   rm -rf "${srcdir}/${_svnmod}-build"