updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / kdevelop-extra-plugins-valgrind-git / PKGBUILD
blobf8e6a9c4d933044e6e87ebb3af1d0dcd577d97d1
1 # Maintainer: prettyvanilla <prettyvanilla@lavabit.com>
3 pkgname=kdevelop-extra-plugins-valgrind-git
4 pkgver=20120112
5 pkgrel=1
6 pkgdesc="Full integration of the valgrind suite for KDevelop4"
7 arch=('i686' 'x86_64')
8 url="https://projects.kde.org/projects/playground/devtools/plugins/kdev-valgrind"
9 license=('GPL')
10 groups=('kdevelop-extra-plugins')
11 depends=('kdevplatform-git')
12 optdepends=('kdevelop-git' 'valgrind')
13 makedepends=('git' 'cmake' 'automoc4')
14 provides=()
15 conflicts=()
16 md5sums=()
18 _gitroot="git://anongit.kde.org/kdev-valgrind"
19 _gitname="kdev-valgrind"
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [[ -d "$_gitname" ]]; then
26     cd "$_gitname" && git pull origin
27     msg "The local files are updated."
28   else
29     git clone "$_gitroot" "$_gitname"
30   fi
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
44   make
47 package() {
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: