1 # Contributor: Marius Dransfeld <marius.dransfeld@googlemail.com>
5 pkgdesc="unity-2d project is a 2d implementation of Unity"
7 url="http://launchpad.net/unity-2d"
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')
15 01_build_with_new_indicator.patch)
16 conflicts=('unity-2d')
18 groups=('unity2d-bzr')
19 install=unity2d-bzr.install
20 md5sums=('f42c84e51214befe58357a0bd861c806'
21 '2e10f7e2eb7b4294f07357d60aefdad4')
29 if [ -d ${_bzrmod} ]; then
31 msg "The local files are updated."
33 bzr co ${_bzrtrunk} ${_bzrmod}
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
41 bzr clone ${srcdir}/${_bzrmod} ${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
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