updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kdevelop-extra-plugins-bazaar-svn / PKGBUILD
bloba5d6d0676063e6246eaa6457983df92465965dba
1 # Contributor: Furyhunter <furyhunter600@gmail.com>
3 pkgname=kdevelop-extra-plugins-bazaar-svn
4 pkgver=1024814
5 pkgrel=1
6 pkgdesc="Bazaar VCS plugin for KDevelop development environment for KDE - SVN build"
7 arch=('i686' 'x86_64')
8 url="http://www.kdevelop.org/"
9 license=('GPL')
10 groups=('kde' 'kdevelop-extra-plugins')
11 depends=('kdevplatform')
12 optdepends=('kdevelop')
13 makedepends=('cmake' 'automoc4' 'subversion')
14 provides=('kdevelop-extra-plugins-bazaar')
15 conflicts=('kdevelop-extra-plugins-bazaar')
16 source=()
17 md5sums=()
19 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/playground/devtools/kdevelop4-extra-plugins/bazaar
20 _svnmod=kdevelop-extra-plugins-bazaar-svn
22 build() {
23     cd ${srcdir}
25     if [ -d ${_svnmod}/.svn ]; then
26         rm ${_svnmod}/CMakeLists.txt
27         (cd ${_svnmod} && svn up -r ${pkgver})
28     else
29         svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
30     fi
32     mkdir -p build
33     cd build
35     cmake ../${_svnmod} \
36         -DCMAKE_SKIP_RPATH=ON \
37         -DCMAKE_BUILD_TYPE=DEBUG \
38         -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
39         -DCMAKE_INSTALL_PREFIX=/usr || return 1
41     make || return 1
43     cd $srcdir/build/bazaar
44     make DESTDIR=${pkgdir} install || return 1