Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 6th, 2013  |  syntax: None  |  size: 2.57 KB  |  views: 138  |  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-dev
  7. pkgver=27.0.1430.0   # Check for new Linux releases in: http://googlechromereleases.blogspot.com/search/label/Dev%20updates
  8. pkgrel=1
  9. pkgdesc="An attempt at creating a safer, faster, and more stable browser (Dev 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')
  15. provides=("google-chrome=$pkgver")
  16. conflicts=('google-chrome')
  17. options=(!strip)
  18. install=${pkgname}.install
  19. _channel='unstable'
  20. _verbld=27.0.1430.0-186115
  21.  
  22. if [ "$CARCH" = "i686" ]; then
  23.     _arch='i386'
  24.     md5sums=('20c44e70519dded0368e200c7471999c')
  25. elif [ "$CARCH" = "x86_64" ]; then
  26.     _arch='x86_64'
  27.     md5sums=('09acdd047af0d827617d8a1440002206')
  28. fi
  29.  
  30.  
  31. source=("http://dl.google.com/linux/chrome/rpm/stable/${_arch}/google-chrome-${_channel}-${_verbld}.${_arch}.rpm")
  32.  
  33.  
  34. package() {
  35.     msg "Preparing install"
  36.     install -d "$pkgdir"/{opt,usr/{bin,share/applications}}
  37.     mv opt/google "$pkgdir"/opt
  38.     msg2 "Done preparing!"
  39.  
  40.     msg "Actual installation"
  41.     ln -s /opt/google/chrome/google-chrome "$pkgdir/usr/bin/"
  42.     mv "$pkgdir/opt/google/chrome/google-chrome.desktop" "$pkgdir/usr/share/applications"
  43.    
  44.     # Remove 64-bit executable from 32-bit installation
  45.     if [ "$CARCH" = "i686" ]; then
  46.         rm -f "$pkgdir/opt/google/chrome/nacl_irt_x86_64.nexe"
  47.         rm -f "$pkgdir/opt/google/chrome/nacl_irt_srpc_x86_64.nexe"
  48.     fi
  49.    
  50.     # Udev workaround
  51.     ln -s /usr/lib/libudev.so.1 "$pkgdir/opt/google/chrome/libudev.so.0"
  52.  
  53.     # Adding man page
  54.     if [ ! -e "$srcdir/usr/share/man/man1/google-chrome.1.gz" ]; then
  55.       gzip -9 "$srcdir/usr/share/man/man1/google-chrome.1"
  56.     fi
  57.     install -Dm644 "$srcdir/usr/share/man/man1/google-chrome.1.gz" "$pkgdir/usr/share/man/man1/google-chrome.1.gz"
  58.  
  59.     # Symlinking icons to /usr/share/icons/hicolor/
  60.     for i in 16x16 22x22 24x24 32x32 48x48 64x64 128x128 256x256; do
  61.       mkdir -p "$pkgdir/usr/share/icons/hicolor/$i/apps/"
  62.       ln -s /opt/google/chrome/product_logo_${i/x*}.png "$pkgdir/usr/share/icons/hicolor/$i/apps/google-chrome.png"
  63.     done
  64.  
  65.     # Fixing permissions of chrome-sandbox
  66.     chmod 4755 "$pkgdir/opt/google/chrome/chrome-sandbox"
  67.  
  68.     msg2 "Installation finished!"
clone this paste RAW Paste Data