updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / massif-visualizer-git / PKGBUILD
blob945bc541456d36ce1b0b0fcedb734317ce1513a6
1 # Maintainer: Rick W. Chen <stuffcorpse@archlinux.us>
2 pkgname=massif-visualizer-git
3 pkgver=20101106
4 pkgrel=1
5 pkgdesc="Massif data visualization tool"
6 arch=(i686 x86_64)
7 url="https://projects.kde.org/projects/playground/sdk/massif-visualizer"
8 license=('GPL2')
9 depends=('kdelibs' "kgraphviewer>=2.1")
10 makedepends=('git')
11 provides=('massif-visualizer')
12 conflicts=('massif-visualizer')
13 source=()
14 md5sums=()
16 _gitroot="git://anongit.kde.org/massif-visualizer"
17 _gitname="massif-visualizer"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone -l "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   #
38   # BUILD HERE
39   #
41   cmake \
42     -DCMAKE_BUILD_TYPE=Release \
43     -DCMAKE_INSTALL_PREFIX=/usr \
44     .
45   make
48 package() {
49   cd "$srcdir/$_gitname-build"
50   make DESTDIR="$pkgdir/" install
51