1 # Maintainer: György Balló <ballogy@freestart.hu>
5 pkgdesc="A 2d implementation of Unity"
7 url="https://launchpad.net/unity-2d"
9 depends=('qt-ubuntu' 'libqtgconf' 'libqtbamf' 'libqtdee' 'libdbusmenu-qt' 'dconf-qt' 'unity' 'unity-asset-pool' 'gnome-session' 'gnome-settings-daemon' 'metacity')
10 true && depends=('qt-ubuntu' 'libqtgconf' 'libqtbamf' 'libqtdee' 'libdbusmenu-qt' 'dconf-qt' 'unity-common' 'unity-asset-pool' 'gnome-session' 'gnome-settings-daemon' 'metacity')
11 makedepends=('cmake' 'boost')
12 optdepends=('indicator-application: take menus from applications and place them in the panel'
13 'indicator-appmenu: host the menus from an application'
14 'indicator-datetime: a very, very simple clock'
15 'indicator-messages: a place on the users desktop that collects messages that need a response'
16 'indicator-power: show the power status of your devices'
17 'indicator-session: change your status, switch users'
18 'indicator-sound: a unified sound menu'
19 'unity-lens-applications: exposes your applications with their usage statistics and status'
20 'unity-lens-files: exposing your files and file history'
21 'unity-lens-music: music, in the dash')
22 install=$pkgname.install
23 source=(https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_$pkgver.orig.tar.gz
24 launchpad-export.tar.gz
25 debian-changes-4.12.0-0ubuntu2
26 show-all-systray-icon.patch
27 keymonitor-shutdown-fixes.patch
28 fix-adwaita-window-buttons.patch
29 fix-imports-dir-location.patch
30 disable-multitouch.patch
32 unity-2d.xml.mandatory
36 md5sums=('dde09444133691744e2f1677a5e2af01'
37 'a57fa88abd7972852823ac26ffbc8358'
38 '7a824495d5f5033619f4fb4d03f59d56'
39 '1df4f09ffe7585abb1be746d7bf10d6a'
40 '11dce8dc8029fe7797850de174015c54'
41 'a8358f74c690877cf5342a7d54d3c435'
42 '3eb4f2dd303a4182df697cb3175a16b1'
43 '81d19b1570979f439b222e6cd8f835a6'
44 'eb6185b37ee0a999fa3035e68549cc1c'
45 '503ed165d24d9849ddd2894fc46b5569'
46 '5a5be3ce2c6a0b46e25d3931d7a81c13'
47 '537b2175edab39b428ca5e23676fd700'
48 '225b0673f01904c8a903f0a49e3ed4ea')
51 cd "$srcdir/$pkgname-$pkgver"
52 patch -Np1 -i "$srcdir/debian-changes-4.12.0-0ubuntu2"
53 patch -Np0 -i "$srcdir/show-all-systray-icon.patch"
54 patch -Np0 -i "$srcdir/keymonitor-shutdown-fixes.patch"
55 patch -Np1 -i "$srcdir/fix-adwaita-window-buttons.patch"
56 patch -Np1 -i "$srcdir/fix-imports-dir-location.patch"
57 patch -Np1 -i "$srcdir/disable-multitouch.patch"
59 # Install updated language files
60 echo 'af am an ar ast az be bem bg bn bo br bs ca ca@valencia crh cy cs da de el en_AU en_CA en_GB eo es et eu fa fi fil fr fy gd gl gv he hi hr hu hy id is it ja ka kk km kn ko ku ky lb lt lv mg mhr ml mr ms my nb nl nn oc pa pl ps pt pt_BR ro ru sd si sk sl sq sr sv ta te th ti tr tt ug uk ur uz vec vi wae zh_CN zh_HK zh_TW' >po/LINGUAS
61 rename $pkgbase- '' ../po/$pkgbase-*.po
64 [[ -d build ]] || mkdir build
67 cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
72 cd "$srcdir/$pkgname-$pkgver/build"
74 make DESTDIR="$pkgdir/" install
76 # Install Metacity settings
77 install -dm755 "$pkgdir"/etc/gconf/unity-2d.xml.{defaults,mandatory}
78 gconftool-2 --direct --config-source xml:readwrite:"$pkgdir/etc/gconf/unity-2d.xml.defaults" --load "$srcdir/unity-2d.xml.defaults"
79 gconftool-2 --direct --config-source xml:readwrite:"$pkgdir/etc/gconf/unity-2d.xml.mandatory" --load "$srcdir/unity-2d.xml.mandatory"
80 install -Dm755 "$srcdir/unity-2d.sh" "$pkgdir/etc/profile.d/unity-2d.sh"
82 # Install session and desktop files
83 install -Dm644 "$srcdir/unity-2d.session" "$pkgdir/usr/share/gnome-session/sessions/unity-2d.session"
84 install -Dm644 "$srcdir/unity-2d.desktop" "$pkgdir/usr/share/xsessions/unity-2d.desktop"