This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!

PKGBUILD_cinnamon-applet-windows7-menu

By: gbc921 on Apr 30th, 2013  |  syntax: Bash  |  size: 1.24 KB  |  views: 62  |  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: twa022
  2. # Maintainer: twa022
  3.  
  4. pkgname=cinnamon-applet-windows7-menu
  5. pkgver=1.3.1
  6. pkgrel=1
  7. pkgdesc="A Cinnamon menu that emulates the Win 7 start menu."
  8. arch=('any')
  9. url="http://cinnamon-spices.linuxmint.com/applets/view/78"
  10. license=('unknown')
  11. groups=('cinnamon-applets')
  12. depends=('cinnamon')
  13. source=("http://cinnamon-spices.linuxmint.com/uploads/applets/UVV9-O2TG-RTWU.zip"        
  14.         'arch.patch')
  15.        
  16.  
  17. package() {
  18.         while [[ "X${_fm}" == 'X' ]] ; do
  19.                 msg "Choose your preferred file manager:"
  20.                 msg2 "1) nemo"
  21.                 msg2 "2) nautilus"
  22.                 read -p ">> " _reply
  23.                 case "$_reply" in
  24.                         1)
  25.                                 depends+=( 'nemo' )
  26.                                 _fm='nemo'
  27.                                 ;;                     
  28.                         2)
  29.                                 depends+=( 'nautilus' )
  30.                                 _fm='nautilus'
  31.                                 ;;
  32.                         *)
  33.                                 error "NOT A VALID REPLY"
  34.                                 sleep 1s
  35.                                 ;;
  36.                 esac
  37.         done
  38.  
  39.         cd ${srcdir}
  40.         patch -Np0 -i ./arch.patch
  41.         find cinnamon7Menu@physics/ -type f -not -name *~ -exec install -Dm644 '{}' "$pkgdir/usr/share/cinnamon/applets/{}" \;
  42.         case "$_fm" in
  43.                 nautilus)
  44.                         sed -i 's:nemo:nautilus:g' "$pkgdir"/usr/share/cinnamon/applets/*/*
  45.                         ;;
  46.         esac
  47. }
  48.  
  49. sha256sums=('3d44819b027a2873492950a581fe255f2524960734c4a92dfda53b0132a4c11f'
  50.             '7e597437ee9c92962c5faf5ec0acefcd0e4feb8cfa83c0b01eaf08c3b839cde8')
clone this paste RAW Paste Data