updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / unity2d-bzr / PKGBUILD
blob5cb310c8df4a9667cf438e8d0cb5921712ff5c11
1 # Contributor: Marius Dransfeld <marius.dransfeld@googlemail.com>
2 pkgname=unity2d-bzr
3 pkgver=631
4 pkgrel=1
5 pkgdesc="unity-2d project is a 2d implementation of Unity"
6 arch=('i686' 'x86_64')
7 url="http://launchpad.net/unity-2d"
8 license=('GPL')
9 depends=('qt' 'libwnck' 'libdbusmenu-qt' 'libindicator' 'libqtbamf-bzr' 'libqtdee-bzr' 'utouch-geis-bzr'
10          'libqtgconf-bzr' 'metacity' 'unity-place-files-bzr' 'unity-place-applications-bzr' 'unity-asset-pool-bzr')
11 makedepends=('cmake' 'bzr')
12 optdepends=('appmenu-gtk: Export GTK menus over DBus'
13             'appmenu-qt: appmenu support for Qt')
14 source=(gio.patch
15         01_build_with_new_indicator.patch)
16 conflicts=('unity-2d')
17 replaces=('unity-2d')
18 groups=('unity2d-bzr')
19 install=unity2d-bzr.install
20 md5sums=('f42c84e51214befe58357a0bd861c806'
21          '2e10f7e2eb7b4294f07357d60aefdad4')
24 _bzrtrunk=lp:unity-2d
25 _bzrmod=unity-2d
27 build() {
28   cd "$srcdir"
29   if [ -d ${_bzrmod} ]; then
30   bzr up ${_bzrmod}
31     msg "The local files are updated."
32   else
33     bzr co ${_bzrtrunk} ${_bzrmod}
34   fi
35   msg "Bazaar checkout done or server timeout"
36   msg "Starting make..."
37   if [[ -d ${srcdir}/build ]]; then
38     msg "Cleaning the previous build directory..."
39     rm -rf ${srcdir}/build 
40   fi
41   bzr clone ${srcdir}/${_bzrmod} ${srcdir}/build
42   cd ${srcdir}/build
43   patch -Np1 -i "$srcdir/gio.patch"
44   patch -Np1 -i "$srcdir/01_build_with_new_indicator.patch"
45   cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
46   make
49  package() { 
50   cd ${srcdir}/build
51   make DESTDIR="${pkgdir}" install
52   install -D -m 755 ${srcdir}/${_bzrmod}/debian/unity-2d.py ${pkgdir}/usr/share/apport/general-hooks/unity-2d.py
53   install -D -m 644 ${srcdir}/${_bzrmod}/debian/gconf/unity-2d.default.path ${pkgdir}/usr/share/gconf/unity-2d.default.path
54   install -D -m 644 ${srcdir}/${_bzrmod}/debian/gconf/unity-2d.mandatory.path ${pkgdir}/usr/share/gconf/unity-2d.mandatory.path
55   install -D -m 644 ${srcdir}/${_bzrmod}/debian/gconf/schemas/unity-2d.schemas ${pkgdir}/usr/share/gconf/schemas/unity2d-bzr.schemas
56   install -D -m 644 ${srcdir}/${_bzrmod}/session/2d-ubuntu.session ${pkgdir}/usr/share/gnome-session/sessions/2d-ubuntu.sessions
57   install -D -m 644 ${srcdir}/${_bzrmod}/session/unity-2d.desktop ${pkgdir}/usr/share/xsessions/unity-2d.desktop