updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / kartesio-git / PKGBUILD
blobbbeab4698948c2f0504d7a55554deb0a1f73ea0c
1 pkgname=kartesio-git
2 pkgver=20110502
3 pkgrel=1
4 pkgdesc='Kartesio is a program that tries to calculate a fit curve for some points'
5 arch=('i686' 'x86_64')
6 license=('GPL')
7 url="https://projects.kde.org/projects/playground/edu/kartesio"
8 depends=('kdebase-runtime' 'kdeedu-libkdeedu' 'maxima')
9 makedepends=('git' 'cmake' 'automoc4')
11 _gitroot="git://anongit.kde.org/kartesio.git"
12 _gitname="kartesio"
14 build() {
16 cd $srcdir
17   msg "Connecting to the GIT server...."
18   
19   if [[ -d $srcdir/$_gitname ]] ; then
20     cd $_gitname
21     git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot
25   fi
26   
27   msg "GIT checkout done"
28   msg "Starting make..."
29   if [[ -d ${srcdir}/${_gitname}-build ]]; then
30     msg "Cleaning the previous build directory..."
31     rm -rf ${srcdir}/${_gitname}-build
32   fi
33   mkdir $srcdir/$_gitname-build
34   cd $srcdir/$_gitname-build
35   cmake $startdir/src/$_gitname/$_gitname -DCMAKE_BUILD_TYPE=Release \
36                 -DCMAKE_INSTALL_PREFIX=/usr
37   make
40 package() {
41   cd ${srcdir}/$_gitname-build
42   make DESTDIR=${pkgdir} install