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

mintmenu-xfce4 PKGBUILD

By: a guest on Jan 30th, 2011  |  syntax: Bash  |  size: 2.27 KB  |  views: 146  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. 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.6
  14. pkgrel=3
  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. optdepends=('alacarte: for editing the gnome menu'
  22.             'gtkpacman: to manage your packages')
  23. provides=($_pkgname=$pkgver)
  24. conflicts=($_pkgname)
  25. source=("${url}/${_pkgname}_${pkgver}.tar.gz" 'arch-patch.diff' 'removescript')
  26. install=${_pkgname}.install
  27.  
  28. build() {
  29.   cd "$srcdir/${_pkgname}"
  30.   rm -f usr/lib/linuxmint/mintMenu/*.pyc usr/lib/linuxmint/mintMenu/plugins/*pyc
  31.   patch -Np0 -i $srcdir/arch-patch.diff
  32.  
  33.   ## Xfce4 specific changes
  34.   sed -i 's:nautilus:exo-open --launch FileManager:g' usr/lib/linuxmint/mintMenu/plugins/places.py
  35.   sed -i -e 's:gnome-terminal:exo-open --launch TerminalEmulator:g' \
  36.          -e 's:gnome-control-center:xfce4-settings-manager:g' \
  37.          -e 's:xdg-screensaver lock:xflock4:g' \
  38.          -e 's:gnome-session-save --logout-dialog:xfce4-session-logout --fast:g' \
  39.          -e 's:gnome-session-save --shutdown-dialog:xfce4-session-logout --fast:g' \
  40.          -e 's:Log out or switch user:Log out:g' usr/lib/linuxmint/mintMenu/plugins/system_management.py
  41.  
  42.   sed -i -e "s/__version__/$pkgver/" usr/lib/linuxmint/mintMenu/mintMenu.py
  43.   cp -R usr $pkgdir/
  44.   chmod 644 $pkgdir/usr/lib/bonobo/servers/mintMenu.server
  45.   install -m755 $srcdir/removescript $pkgdir/usr/lib/linuxmint/mintMenu/
  46.   cd "${pkgdir}"/usr/lib/linuxmint/mintMenu
  47.   ./compile.py || return 1
  48. }
  49.  
  50. md5sums=('fc3c4a91baba87487c48bd522be1ec89'
  51.          '0f8c1befd037089a331152505381d1aa'
  52.          'bcdbc95fc35331f1f5e13a86b9d770f0')