updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / lcl-git / PKGBUILD
blob22f9626a2b7abb6f070f5c231ec05ef150f67e1f
1 # Maintainer: Mariano Street <mstreet@kde.org.ar>
3 pkgname=lcl-git
4 _basename=lcl
5 pkgver=20110516
6 pkgrel=1
7 pkgdesc='Live Command Line from the Sapphire desktop environment'
8 arch=(i686 x86_64)
9 url="http://gitorious.org/delphos/$_basename"
10 license=('GPL3')
11 groups=('sapphire')
12 depends=('qt' 'dbus')
13 makedepends=('qt' 'git')
14 optdepends=('sapphire-desktop: innovative and usability-oriented desktop environment')
15 provides=('lcl')
17 _gitroot="git://gitorious.org/delphos/$_basename.git"
18 _gitname="$_basename"
20 build ()
22     cd "$srcdir"
23     msg 'Connecting to GIT server....'
24     
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
31     
32     msg 'GIT checkout done or server timeout.'
33     msg 'Starting make...'
34     
35     rm -rf "$srcdir/$_gitname-build"
36     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37     cd "$srcdir/$_gitname-build"
38     
39     qmake
40     make
43 package ()
45     cd "$srcdir/$_gitname-build"
46     mkdir -p "$pkgdir/usr/bin"
47     cp lcl "$pkgdir/usr/bin"
48