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 Mar 28th, 2013  |  syntax: None  |  size: 2.61 KB  |  views: 174  |  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.1453.3   # 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-font' 'xdg-utils')
  14. optdepends=('kdebase-kdialog: needed for file dialogs in KDE' 'ttf-google-webfonts')
  15. provides=("google-chrome=$pkgver")
  16. conflicts=('google-chrome')
  17. options=(!strip)
  18. install=${pkgname}.install
  19. _channel='unstable'
  20. _svnver=190735
  21. _verbld=${pkgver}-${_svnver}
  22.  
  23. if [ "$CARCH" = "i686" ]; then
  24.     _arch='i386'
  25.     md5sums=('69b5058547bf060cbc42b99a67fde2e9')
  26. elif [ "$CARCH" = "x86_64" ]; then
  27.     _arch='x86_64'
  28.     md5sums=('2dd8993f2a067e7aa3e6b7570ec777a5')
  29. fi
  30.  
  31.  
  32. source=("http://dl.google.com/linux/chrome/rpm/stable/${_arch}/google-chrome-${_channel}-${_verbld}.${_arch}.rpm")
  33.  
  34.  
  35. package() {
  36.     msg "Preparing install"
  37.     install -d "$pkgdir"/{opt,usr/{bin,share/applications}}
  38.     mv opt/google "$pkgdir"/opt
  39.     msg2 "Done preparing!"
  40.  
  41.     msg "Actual installation"
  42.     ln -s /opt/google/chrome/google-chrome "$pkgdir/usr/bin/"
  43.     mv "$pkgdir/opt/google/chrome/google-chrome.desktop" "$pkgdir/usr/share/applications"
  44.    
  45.     # Remove 64-bit executable from 32-bit installation
  46.     if [ "$CARCH" = "i686" ]; then
  47.         rm -f "$pkgdir/opt/google/chrome/nacl_irt_x86_64.nexe"
  48.         rm -f "$pkgdir/opt/google/chrome/nacl_irt_srpc_x86_64.nexe"
  49.     fi
  50.    
  51.     # Udev workaround
  52.     ln -s /usr/lib/libudev.so.1 "$pkgdir/opt/google/chrome/libudev.so.0"
  53.  
  54.     # Adding man page
  55.     if [ ! -e "$srcdir/usr/share/man/man1/google-chrome.1.gz" ]; then
  56.       gzip -9 "$srcdir/usr/share/man/man1/google-chrome.1"
  57.     fi
  58.     install -Dm644 "$srcdir/usr/share/man/man1/google-chrome.1.gz" "$pkgdir/usr/share/man/man1/google-chrome.1.gz"
  59.  
  60.     # Symlinking icons to /usr/share/icons/hicolor/
  61.     for i in 16x16 22x22 24x24 32x32 48x48 64x64 128x128 256x256; do
  62.       mkdir -p "$pkgdir/usr/share/icons/hicolor/$i/apps/"
  63.       ln -s /opt/google/chrome/product_logo_${i/x*}.png "$pkgdir/usr/share/icons/hicolor/$i/apps/google-chrome.png"
  64.     done
  65.  
  66.     # Fixing permissions of chrome-sandbox
  67.     chmod 4755 "$pkgdir/opt/google/chrome/chrome-sandbox"
  68.  
  69.     msg2 "Installation finished!"
  70. }