updated on Mon Jan 16 16:00:41 UTC 2012
[aur-mirror.git] / libdelta-git / PKGBUILD
blob5e611189da842a206d8d0b556c993b09cc21bd3d
1 # Maintainer: Mariano Street <mstreet@kde.org.ar>
3 pkgname=libdelta-git
4 _basename=libdelta
5 pkgver=20111220
6 pkgrel=1
7 pkgdesc='Core library from the Sapphire desktop environment'
8 arch=(i686 x86_64)
9 url="http://gitorious.org/delphos/$_basename"
10 license=('GPL')
11 groups=('sapphire')
12 depends=('qt')
13 makedepends=('qt' 'git' 'cmake')
14 optdepends=('sapphire-desktop-git: innovative and usability-oriented desktop environment')
15 provides=('libdelta')
16 source=()
17 md5sums=()
19 _gitroot="git://gitorious.org/delphos/$_basename.git"
20 _gitname="$_basename"
22 build ()
24     cd "$srcdir"
25     msg 'Connecting to GIT server....'
26     
27     if [ -d $_gitname ]; then
28         cd $_gitname && git pull origin
29         msg 'The local files are updated.'
30     else
31         git clone $_gitroot $_gitname
32     fi
33     
34     msg 'GIT checkout done or server timeout.'
35     msg 'Starting make...'
36     
37     rm -rf "$srcdir/$_gitname-build"
38     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39     cd "$srcdir/$_gitname-build"
40     
41     mkdir build
42     cd build
43     cmake -DCMAKE_INSTALL_PREFIX='/usr' ..
44     make
47 package ()
49     cd "$srcdir/$_gitname-build/build"
50     make DESTDIR="$pkgdir" install
51