updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / kopete-svn / PKGBUILD
blobf45b2238f865e1ba933fbff22325376e35791595
1 # Maintainer: Daniel Riedemann <daniel.riedemann [at] googlemail [dot] com>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Pierre Schmitz <pierre@archlinux.de>
5 pkgname=kopete-svn
6 pkgver=1217717
7 pkgrel=1
8 pkgdesc="Instant Messenger"
9 arch=('i686' 'x86_64')
10 url="http://kde.org/applications/internet/kopete/"
11 license=('GPL')
12 depends=('kdebase-runtime' 'kdepimlibs' 'qca-ossl' 'libotr' 'libmsn'
13          'libidn' 'qimageblitz' 'v4l-utils' 'libgadu')
14 makedepends=('subversion')
15 provides=('kdenetwork-kopete')
16 conflicts=('kdenetwork-kopete')
18 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/KDE/kdenetwork/kopete
19 _svnmod=kopete
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
30   msg "SVN checkout done or server timeout"
31   msg "Starting make..."
33   [[ -d "${srcdir}/${_svnmod}-build" ]] && rm -rf "${srcdir}/${_svnmod}-build"
34   cp -r "${srcdir}/${_svnmod}" "${srcdir}/${_svnmod}-build"
35   cd "${srcdir}/${_svnmod}-build"
37   cmake -DCMAKE_BUILD_TYPE=Release \
38         -DCMAKE_SKIP_RPATH=ON \
39         -DCMAKE_INSTALL_PREFIX=/usr \
40         -DMOZPLUGIN_INSTALL_DIR=/usr/lib/mozilla/plugins/ \
41         -DWITH_Xmms=OFF \
42         -DWITH_LibMeanwhile=OFF
44   make DESTDIR=${pkgdir} install