updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / kdevelop-extra-plugins-ruby-svn / PKGBUILD
blob73d762593bdac8b88881c4fdefab8e6a02528952
1 # Maintainer: Callea Gaetano Andrea <callea:gaetano:andrea/gmail:com> 
3 pkgname=kdevelop-extra-plugins-ruby-svn
4 pkgver=1144334
5 pkgrel=5
6 pkgdesc="A Ruby plugin for KDevelop development environment for KDE - SVN build"
7 arch=('i686' 'x86_64')
8 url="http://www.kdevelop.org/"
9 license=('GPL')
10 depends=('kdevplatform-git')
11 optdepends=('kdevelop-git')
12 makedepends=('cmake' 'automoc4' 'subversion' 'kdevelop-pg-qt-git')
13 provides=('kdevelop-extra-plugins-ruby-svn')
14 install=kdevelop-extra-plugins-ruby-svn.install
15 source=()
16 md5sums=()
18 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/playground/devtools/kdevelop4-extra-plugins/ruby
19 _svnmod=ruby
21 build() {
22         cd ${srcdir}
24         if [[ -d ${_svnmod}/.svn ]]; then
25                 rm ${_svnmod}/CMakeLists.txt
26                 (cd ${_svnmod} && svn up -r ${pkgver})
27         else
28                 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
29         fi
31         # Rebuilding frequently, comment this out
32         [[ -d build ]] && rm -rf build
34         mkdir -p build
35         cd build
37         # all of these (BUILD_*=OFF) are considered broken/unmaintained
38         cmake ../${_svnmod} \
39                 -DCMAKE_SKIP_RPATH=ON \
40                 -DCMAKE_BUILD_TYPE=DEBUG \
41                 -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
42                 -DCMAKE_INSTALL_PREFIX=/usr || return 1
44         make || return 1
46         make DESTDIR=${pkgdir} install || return 1