1 # Contributor: Harley Laue <losinggeneration@gmail.com>
3 pkgname=(kdevelop-extra-plugins-java-svn)
6 pkgdesc="A Java plugin for KDevelop development environment for KDE - SVN build"
8 url="http://www.kdevelop.org/"
10 groups=('kde' 'kdevelop-extra-plugins')
11 depends=('kdevplatform-git')
12 optdepends=('kdevelop-git')
13 makedepends=('cmake' 'automoc4' 'subversion' 'kdevelop-pg-qt-git' 'flex')
14 provides=('kdevelop-extra-plugins-java')
15 conflicts=('kdevelop-extra-plugins-java')
19 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/playground/devtools/kdevelop4-extra-plugins/java
20 _svnmod=kdevelop-extra-plugins-java-svn
25 if [ -d ${_svnmod}/.svn ]; then
26 rm ${_svnmod}/CMakeLists.txt
27 (cd ${_svnmod} && svn up -r ${pkgver})
29 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
32 # Rebuilding frequently, comment this out
33 [ -d build ] && rm -rf build
38 # all of these (BUILD_*=OFF) are considered broken/unmaintained
40 -DCMAKE_SKIP_RPATH=ON \
41 -DCMAKE_BUILD_TYPE=DEBUG \
42 -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
43 -DCMAKE_INSTALL_PREFIX=/usr || return 1
47 make DESTDIR=${pkgdir} install || return 1