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

Untitled

By: a guest on Aug 12th, 2012  |  syntax: Bash  |  size: 2.07 KB  |  views: 49  |  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. # Maintainer: t3ddy  <t3ddy1988 "at" gmail {dot} com>
  2. # Contributor: Lex Rivera aka x-demon <aur@x-demon.org>
  3. # Contributor: Det <nimetonmaili at gmail a-dot com>
  4. # Contributor: ruario
  5.  
  6. pkgname=google-chrome-beta
  7. pkgver=21.0.1180.77   # Check for new Linux releases in: http://googlechromereleases.blogspot.com/search/label/Beta%20updates
  8. pkgrel=1
  9. pkgdesc="An attempt at creating a safer, faster, and more stable browser (Beta Channel)"
  10. arch=('i686' 'x86_64')
  11. url="http://www.google.com/chrome"
  12. license=('custom:chrome')
  13. depends=('alsa-lib' 'gconf' 'gtk2' 'hicolor-icon-theme' 'libpng' 'libxslt' 'libxss' 'nss' 'ttf-dejavu' 'xdg-utils')
  14. optdepends=('kdebase-kdialog: needed for file dialogs in KDE' 'openssl098: needed for built-in flash-plugin to work')
  15. provides=("google-chrome=$pkgver")
  16. conflicts=('google-chrome')
  17. install=${pkgname}.install
  18. _channel='beta'
  19.  
  20. if [ "$CARCH" = "i686" ]; then
  21.     _arch='i386'
  22.     md5sums=('fc4d19799e1bfaffd488a7db2d081faf')
  23. elif [ "$CARCH" = "x86_64" ]; then
  24.     _arch='amd64'
  25.     md5sums=('08a4ea0fe81edec22b1fd3bc43cf1d25')
  26. fi
  27.  
  28. source=("https://dl.google.com/linux/direct/google-chrome-${_channel}_current_${_arch}.deb")
  29.  
  30. package() {
  31.   msg "Extracting the data.tar.lzma"
  32.   bsdtar -xf data.tar.lzma -C "$pkgdir"
  33.   msg2 "Done!"
  34.  
  35.   msg "Preparing install"
  36.   install -d "$pkgdir"/{opt,usr/{bin,share/applications}}
  37.   msg2 "Done preparing!"
  38.  
  39.   msg "Actual installation"
  40.   mv "$pkgdir/opt/google/chrome/google-chrome.desktop" "$pkgdir/usr/share/applications"
  41.  
  42.   # Remove 64-bit executable from 32-bit installation
  43.   if [ "$CARCH" = "i686" ]; then
  44.     rm -f "$pkgdir/opt/google/chrome/nacl_irt_x86_64.nexe"
  45.   fi
  46.  
  47.   # Udev workaround
  48.   ln -s /usr/lib/libudev.so.1 "$pkgdir/opt/google/chrome/libudev.so.0"
  49.  
  50.   # Symlinking icons to /usr/share/icons/hicolor/
  51.   for i in 16x16 22x22 24x24 32x32 48x48 64x64 128x128 256x256; do
  52.     mkdir -p "$pkgdir/usr/share/icons/hicolor/$i/apps/"
  53.     ln -s /opt/google/chrome/product_logo_${i/x*}.png "$pkgdir/usr/share/icons/hicolor/$i/apps/google-chrome.png"
  54.   done
  55.  
  56.   msg2 "Installation finished!"
  57. }