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 Jul 30th, 2011  |  syntax: Bash  |  size: 2.36 KB  |  views: 176  |  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.  
  5. pkgname=google-chrome-dev
  6. pkgver=14.0.835.8   # Check for new Linux releases in: http://googlechromereleases.blogspot.com/search/label/Dev%20updates
  7. pkgrel=1
  8. pkgdesc="An attempt at creating a safer, faster, and more stable browser (Dev Channel)"
  9. arch=('i686' 'x86_64')
  10. url="http://www.google.com/chrome"
  11. license=('custom:chrome')
  12. depends=('alsa-lib' 'cairo' 'freetype2' 'gcc-libs' 'gconf' 'gtk2' 'hicolor-icon-theme' 'libpng12' 'libxslt' 'libxss' 'nss')
  13. optdepends=('gecko-mediaplayer')
  14. provides=("google-chrome=$pkgver")
  15. conflicts=('google-chrome')
  16. install=${pkgname}.install
  17. _channel='unstable'
  18.  
  19. if [ "$CARCH" = "i686" ]; then
  20.     _arch='i386'    
  21.     md5sums=('67c4e119cafcb0378575dd16dd514f34')
  22. elif [ "$CARCH" = "x86_64" ]; then
  23.     _arch='amd64'
  24.     optdepends+=('flashplugin')
  25.     md5sums=('4b2a090214a4ac9d7640f75bb3091cfe')
  26. fi
  27.  
  28. source=("http://dl.google.com/linux/direct/google-chrome-${_channel}_current_${_arch}.deb")
  29.  
  30. package() {
  31.     msg "Extracting the Google Chrome package"
  32.     ar -xv google-chrome-${_channel}_current_${_arch}.deb
  33.     tar -xvf data.tar.lzma
  34.     msg2 "Done extracting!"
  35.  
  36.     msg "Preparing install"
  37.     install -d "$pkgdir"/{opt,usr/{bin,share/applications}}
  38.     mv -v opt/google "$pkgdir"/opt
  39.     msg2 "Done preparing!"
  40.  
  41.     msg "Actual installation"
  42.     ln -sv /opt/google/chrome/google-chrome "$pkgdir/usr/bin/"
  43.     ln -sv /usr/lib/mozilla/plugins "$pkgdir/opt/google/chrome"
  44.     mv -v "$pkgdir/opt/google/chrome/google-chrome.desktop" "$pkgdir/usr/share/applications"
  45.  
  46.     mkdir "$pkgdir/opt/google/chrome/lib"
  47.     cd "$pkgdir/opt/google/chrome/lib"
  48.     ln -sv /usr/lib/libnspr4.so libnspr4.so.0d
  49.     ln -sv /usr/lib/libnss3.so libnss3.so.1d
  50.     ln -sv /usr/lib/libnssutil3.so libnssutil3.so.1d
  51.     ln -sv /usr/lib/libplc4.so libplc4.so.0d
  52.     ln -sv /usr/lib/libplds4.so libplds4.so.0d
  53.     ln -sv /usr/lib/libsmime3.so libsmime3.so.1d
  54.     ln -sv /usr/lib/libssl3.so libssl3.so.1d
  55.  
  56.     # Installing icons to /usr/share/icons/hicolor/
  57.     for i in 16 32 48 256;
  58.     do
  59.         install -D "$pkgdir/opt/google/chrome/product_logo_${i}.png" "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/google-chrome.png"
  60.     done
  61.        
  62.     msg2 "Installation finished!"
  63. }
clone this paste RAW Paste Data