updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / kdevelop-extra-plugins-java-svn / PKGBUILD
blob1afddf17685e3217331bd3f936afa1f44f53285c
1 # Contributor: Harley Laue <losinggeneration@gmail.com>
3 pkgname=(kdevelop-extra-plugins-java-svn)
4 pkgver=1156158
5 pkgrel=2
6 pkgdesc="A Java 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-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')
16 source=()
17 md5sums=()
19 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/playground/devtools/kdevelop4-extra-plugins/java
20 _svnmod=kdevelop-extra-plugins-java-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         # Rebuilding frequently, comment this out
33         [ -d build ] && rm -rf build
35         mkdir -p build
36         cd build
38         # all of these (BUILD_*=OFF) are considered broken/unmaintained
39         cmake ../${_svnmod} \
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
45         make || return 1
47         make DESTDIR=${pkgdir} install || return 1