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

google-chrome-beta

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 2.55 KB  |  views: 117  |  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=20.0.1132.43   # 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. _verbld=20.0.1132.43-143823
  20.  
  21. if [ "$CARCH" = "i686" ]; then
  22.     _arch='i386'
  23.     md5sums=('237055a65fd7603e872dacdd9aee51c1')
  24. elif [ "$CARCH" = "x86_64" ]; then
  25.     _arch='x86_64'
  26.     md5sums=('58bb703cdac36c9ed187c3dfb78b2168')
  27. fi
  28.  
  29.  
  30. source=("http://dl.google.com/linux/chrome/rpm/stable/${_arch}/google-chrome-${_channel}-${_verbld}.${_arch}.rpm")
  31.  
  32.  
  33. package() {
  34.     msg "Preparing install"
  35.     install -d "$pkgdir"/{opt,usr/{bin,share/applications}}
  36.     mv opt/google "$pkgdir"/opt
  37.     msg2 "Done preparing!"
  38.  
  39.     msg "Actual installation"
  40.     ln -s /opt/google/chrome/google-chrome "$pkgdir/usr/bin/"
  41.     mv "$pkgdir/opt/google/chrome/google-chrome.desktop" "$pkgdir/usr/share/applications"
  42.    
  43.     # Remove 64-bit executable from 32-bit installation
  44.     if [ "$CARCH" = "i686" ]; then
  45.         rm -f "$pkgdir/opt/google/chrome/nacl_irt_x86_64.nexe"
  46.     fi
  47.    
  48.     # Udev workaround
  49.     ln -s /usr/lib/libudev.so.1.0.1 "$pkgdir/opt/google/chrome/libudev.so.0"
  50.  
  51.     # Adding man page
  52.     if [ ! -e "$srcdir/usr/share/man/man1/google-chrome.1.gz" ]; then
  53.       gzip -9 "$srcdir/usr/share/man/man1/google-chrome.1"
  54.     fi
  55.     install -Dm644 "$srcdir/usr/share/man/man1/google-chrome.1.gz" "$pkgdir/usr/share/man/man1/google-chrome.1.gz"
  56.  
  57.     # Symlinking icons to /usr/share/icons/hicolor/
  58.     for i in 16x16 22x22 24x24 32x32 48x48 64x64 128x128 256x256; do
  59.       mkdir -p "$pkgdir/usr/share/icons/hicolor/$i/apps/"
  60.       ln -s /opt/google/chrome/product_logo_${i/x*}.png "$pkgdir/usr/share/icons/hicolor/$i/apps/google-chrome.png"
  61.     done
  62.  
  63.     # Fixing permissions of chrome-sandbox
  64.     chmod 4755 "$pkgdir/opt/google/chrome/chrome-sandbox"
  65.  
  66.     msg2 "Installation finished!"
  67. }
clone this paste RAW Paste Data