updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cairo-dock-bzr / PKGBUILD
blob3f0195f90a8b7dc7b03ece2032f2234055ce2302
1 #Maintainer: bh <ang5t@gmx.net>
2 #Contributor: lh <jarryson#gmail.com>
3 pkgname=cairo-dock-bzr
4 pkgver=697
5 pkgrel=1
6 pkgdesc="A cairo-based themeable dock app for a composited desktop"
7 url="http://www.glx-dock.org/"
8 license="GPL"
9 arch=('i686' 'x86_64')
10 depends=('librsvg' 'dbus' 'dbus-glib' 'gtkglext')
11 makedepends=('bzr' 'intltool' 'perlxml' 'cmake')
12 conflicts=('cairo-dock' 'cairo-dock-svn')
13 provides=('cairo-dock')
14 md5sums=()
15 source=()
17 _bzrmod=cairo-dock-core
18 _bzrtrunk=http://bazaar.launchpad.net/~cairo-dock-team/cairo-dock-core/cairo-dock/
20 build() {
21   cd $srcdir/
23   msg "Connecting to the server...."
25    if [ ! -d ./${_bzrmod} ]; then
26      bzr --no-plugins branch ${_bzrtrunk} ${_bzrmod} -q -r ${pkgver}
27    else
28      cd ${_bzrmod} && bzr --no-plugins pull ${_bzrtrunk} -r ${pkgver}
29    fi
31   msg "bzr checkout done or server timeout"
33   msg "Removing old build directory..."
34   rm -rf $srcdir/$_bzrmod-build
35   msg "Creating build directory..."
36   cp -r $srcdir/$_bzrmod $srcdir/$_bzrmod-build
38   cd $srcdir/$_bzrmod-build
39   msg "Building..."
40   
41   cmake -DCMAKE_INSTALL_PREFIX=/usr  || return 1
42   make || return 1
43   make install DESTDIR=$pkgdir || return 1
44   
45   #mkdir -p $pkgdir/usr/share/applications
46   #install -Dm644 $srcdir/$_svnmod-build/data/cairo-dock.desktop $pkgdir/usr/share/applications/cairo-dock.desktop || return 1
47   
48   }