1. # Contributor: Flamelab <panosfilip@gmail.com>
  2. # Previous contributor: Maintainer: Adam Hani Schakaki (krzd) <krzd@krzd.net>
  3.  
  4. # Fixes thanks to: pressh
  5.  
  6. pkgname=unity
  7. pkgver=3.8.14
  8. pkgrel=1
  9. pkgdesc="Ubuntu's new desktop interface"
  10. arch=('i686' 'x86_64')
  11. url="https://launchpad.net/unity/"
  12. license=('GPL')
  13. depends=('compiz-core-unity-git' 'nux-bzr' 'clutter' 'clutter-gtk' 'clutk' 'dbus-glib' 'glib2' 'gtk2' 'gjs' 'gconf' 'gnome-desktop' 'libgnomeui' \
  14. 'libdbusmenu' 'dee' 'bamf' 'ccsm-unity-git' 'libindicator' 'utouch-geis-bzr')
  15. makedepends=('vala-git' 'intltool' 'gobject-introspection' 'cmake' 'libgee' 'libunity-misc')
  16. optdepends=('libindicate: For Ubuntu indicator support'
  17. 'ayatana-ubuntu: Ubuntu Ayatana -indicator- project'
  18. 'utouch-grail: Utouch support')
  19. source=("http://launchpad.net/${pkgname}/3.0/${pkgver}/+download/${pkgname}-${pkgver}.tar.bz2")
  20. install=unity.install
  21. md5sums=('ef8f56964a60ecdf28a082f714e74da4')
  22.  
  23. #Change this to "0" if you don't want the message before starting building to appear
  24. _buildmsg=1
  25.  
  26.  
  27. build() {
  28.  
  29. if [ "$_buildmsg" == "1" ];then
  30. GR=$'\x1b[1;32m'
  31. REDB=$'\x1b[31;1m'
  32. NC=$'\x1b[0m'
  33. echo "******************************************************************************"
  34. echo "In order to build this package you must build the Compiz 0.9.x packages (not the 0.8.x ones) with an /opt/unity prefix. That means"
  35. echo "you will add a $REDB \"-DCMAKE_INSTALL_PREFIX=/opt/unity\" $NC in the cmake line in the Compiz 0.9.x PKGBUILDs"
  36. echo "BEFORE you build unity. The ones added as dependencies, they *do* use /opt/unity as prefix."
  37. echo "*******************************************************************************"
  38. echo "Unity will be available as Compiz $REDB plugin $NC in Compiz Config Settings Manager (ccsm) as \"Ubuntu Unity Plugin\" "
  39. echo "Then, add /opt/unity/bin in your \$PATH in i.e. /etc/profile"
  40. sleep 2
  41. fi
  42.  
  43. cd "${srcdir}/${pkgname}-${pkgver}"
  44. mkdir -p build && cd build
  45. cmake -DCMAKE_BUILD_TYPE=Release \
  46. -DCOMPIZ_PLUGIN_INSTALL_TYPE=package \
  47. -DCMAKE_INSTALL_PREFIX=/opt/unity ..
  48. make
  49.  
  50. }
  51.  
  52. package() {
  53.  
  54. cd "${srcdir}/${pkgname}-${pkgver}"/build
  55. make DESTDIR="${pkgdir}" install
  56.  
  57. }