1 # Maintainer: prettyvanilla <prettyvanilla@lavabit.com>
3 pkgname=kdevelop-extra-plugins-valgrind-git
6 pkgdesc="Full integration of the valgrind suite for KDevelop4"
8 url="https://projects.kde.org/projects/playground/devtools/plugins/kdev-valgrind"
10 groups=('kdevelop-extra-plugins')
11 depends=('kdevplatform-git')
12 optdepends=('kdevelop-git' 'valgrind')
13 makedepends=('git' 'cmake' 'automoc4')
18 _gitroot="git://anongit.kde.org/kdev-valgrind"
19 _gitname="kdev-valgrind"
23 msg "Connecting to GIT server...."
25 if [[ -d "$_gitname" ]]; then
26 cd "$_gitname" && git pull origin
27 msg "The local files are updated."
29 git clone "$_gitroot" "$_gitname"
32 msg "GIT checkout done or server timeout"
33 msg "Starting build..."
35 rm -rf "$srcdir/$_gitname-build"
36 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37 cd "$srcdir/$_gitname-build"
39 cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
40 -DCMAKE_SKIP_RPATH=ON \
41 -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
42 -DCMAKE_INSTALL_PREFIX=/usr
48 cd "$srcdir/$_gitname-build"
50 # fix KDevelop-Version in desktop-file for the plugin to work in current kdevelop-git
51 sed -i 's|X-KDevelop-Version=12$|X-KDevelop-Version=14|' kdevvalgrind.desktop
53 make DESTDIR="$pkgdir/" install
56 # vim:set ts=2 sw=2 et: