Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

AUR MintmenuXfce4

By: alez on Apr 14th, 2011  |  syntax: None  |  size: 2.43 KB  |  views: 437  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: XaBz <xabz.2k5@gmail.com>
  2. # Contributor: Giuseppe Borzi <gborzi _AT_ ieee _DOT_ org>
  3. # Contributor: ryooichi <ryooichi+arch AT gmail DOT com>
  4. # Contributor: twa022 <twa022 at gmail dot com>
  5. # Real thanks goes to jelly, mike_93 and the original creators of mintmenu, usp, slab...
  6. # See also:
  7. #   http://bbs.archlinux.org/viewtopic.php?id=66987
  8. #   http://bbs.archlinux.org/viewtopic.php?id=68633
  9. #   http://github.com/jelly/archmenu
  10.  
  11. _pkgname=mintmenu
  12. pkgname=$_pkgname-xfce4
  13. pkgver=5.1.9
  14. pkgrel=5
  15. pkgdesc="Linux Mint Menu for Xfce4"
  16. arch=('i686' 'x86_64')
  17. url="http://packages.linuxmint.com/pool/main/m/mintmenu"
  18. license=('GPL')
  19. depends=('gnome-panel-bonobo' 'gnome-python' 'python-gnomeapplet' 'python-gnomedesktop'
  20.          'pyxdg' 'pygtk' 'archlinux-artwork' 'exo>=0.5' 'gksu' 'xdg-utils' 'xfce4-xfapplet-plugin'
  21.          'xfce4-settings' 'xfce-utils' 'xfce4-session')
  22. optdepends=('alacarte: for editing the gnome menu'
  23.             'wakka: to manage your packages')
  24. provides=($_pkgname=$pkgver)
  25. conflicts=($_pkgname)
  26. source=("${url}/${_pkgname}_${pkgver}.tar.gz"
  27.         'http://aur.archlinux.org/packages/mintmenu/mintmenu.tar.gz'
  28.         'removescript')
  29. install=${_pkgname}.install
  30.  
  31. build() {
  32.   cd "$srcdir/${_pkgname}"
  33.   rm -f usr/lib/linuxmint/mintMenu/*.pyc usr/lib/linuxmint/mintMenu/plugins/*pyc
  34.   patch -Np0 -i $srcdir/mintmenu/arch-patch.diff
  35.  
  36.   ## Xfce4 specific changes
  37.   sed -i 's:nautilus:exo-open --launch FileManager:g' usr/lib/linuxmint/mintMenu/plugins/places.py
  38.   sed -i -e 's:gnome-terminal:exo-open --launch TerminalEmulator:g' \
  39.          -e 's:gnome-control-center:xfce4-settings-manager:g' \
  40.          -e 's:xdg-screensaver lock:xflock4:g' \
  41.          -e 's:gnome-session-save --logout-dialog:xfce4-session-logout --fast:g' \
  42.          -e 's:gnome-session-save --shutdown-dialog:xfce4-session-logout --fast:g' \
  43.          -e 's:Log out or switch user:Log out:g' \
  44.          -e 's:gtkpacman:wakka:g' usr/lib/linuxmint/mintMenu/plugins/system_management.py
  45.  
  46.   sed -i -e "s/__version__/$pkgver/" usr/lib/linuxmint/mintMenu/mintMenu.py
  47.   cp -R usr $pkgdir/
  48.   chmod 644 $pkgdir/usr/lib/bonobo/servers/mintMenu.server
  49.   install -m755 $srcdir/removescript $pkgdir/usr/lib/linuxmint/mintMenu/
  50.   cd "${pkgdir}"/usr/lib/linuxmint/mintMenu
  51.   ./compile.py || return 1
  52. }
  53.  
  54. md5sums=('b296a1840703ee7454fe289aa78f3c60'
  55.          '88c31b2d2b9ff8f327da288b034219f8'
  56.          'bcdbc95fc35331f1f5e13a86b9d770f0')