updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / klaudia-git / PKGBUILD
blobc1eaf05be5ac692475c7dabaa096d784a89dc672
1 # Maintainer: falkTX <falktx@gmail.com>
3 _p=klaudia
4 pkgname=$_p-git
5 pkgver=20111025
6 pkgrel=1
7 pkgdesc="A multimedia application launcher with LADISH support (Git version)"
8 arch=(any)
9 url="http://kxstudio.sf.net/klaudia"
10 license=('GPL2')
11 depends=('python2-pyqt' 'dbus-python' 'pyxdg' 'xdg-utils')
12 makedepends=('git' 'python2-pyqt')
13 optdepends=('ladish: session support')
14 provides=("$_p")
15 conflicts=("$_p")
16 install="$pkgname.install"
18 _gitroot="git://repo.or.cz/$_p.git"
19 _gitname="$_p"
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 make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
39   make
42 package() {
43   cd "$srcdir/$_gitname-build"
45   make DESTDIR="$pkgdir/" install
46