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 Dec 4th, 2013  |  syntax: None  |  size: 2.37 KB  |  views: 136  |  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: Det <nimetonmaili at gmail a-dot com>
  2. # Contributors: t3ddy, Lex Rivera aka x-demon, ruario
  3.  
  4. # Check for new Linux releases in: http://googlechromereleases.blogspot.com/search/label/Dev%20updates
  5. # or use: $ curl -s https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz | gzip -df | awk -F\" '/pkgid/{ sub(".*-","",$4); print $4": "$10 }'
  6.  
  7. pkgname=google-chrome-dev
  8. pkgver=33.0.1726.0
  9. pkgrel=1
  10. pkgdesc="An attempt at creating a safer, faster, and more stable browser (Dev Channel)"
  11. arch=('i686' 'x86_64')
  12. url="https://www.google.com/chrome"
  13. license=('custom:chrome')
  14. depends=('alsa-lib' 'gconf' 'gtk2' 'hicolor-icon-theme' 'libpng' 'libxslt' 'libxss' 'libxtst' 'nss' 'ttf-font' 'xdg-utils')
  15. optdepends=('kdebase-kdialog: needed for file dialogs in KDE'
  16.             'ttf-google-fonts-git')
  17. provides=("google-chrome=$pkgver")
  18. conflicts=('google-chrome')
  19. options=('!emptydirs' '!strip')
  20. install=$pkgname.install
  21. _channel=unstable
  22. _arch=i386
  23. [ "$CARCH" = 'x86_64' ] && _arch=amd64
  24. source=("google-chrome-${_channel}_${pkgver}_${_arch}.deb::https://dl.google.com/linux/direct/google-chrome-${_channel}_current_${_arch}.deb"
  25.         'https://www.google.com/intl/en/chrome/browser/privacy/eula_text.html')
  26. md5sums=('d62da0cafb0a4dbe4f6dff9599f88ddc'
  27.          'ba19ea498f294975d320ff0b26a6cd63')
  28. [ "$CARCH" = 'x86_64' ] && md5sums[0]='bbbbccd0ed085961ffdd9da33825c650'
  29.  
  30. PKGEXT='.pkg.tar'
  31.  
  32. package() {
  33.   msg2 "Extracting the data.tar.lzma"
  34.   bsdtar -xf data.tar.lzma -C "$pkgdir/"
  35.  
  36.   msg2 "Moving stuff in place"
  37.   # Desktop
  38.   #mv "$pkgdir"/opt/google/chrome-${_channel}/google-chrome.desktop "$pkgdir"/usr/share/applications/
  39.  
  40.   # Icons
  41.   for i in 16 22 24 32 48 64 128 256; do
  42.     install -Dm644 "$pkgdir"/opt/google/chrome-${_channel}/product_logo_${i}.png "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/google-chrome.png
  43.   done
  44.  
  45.   # Man page
  46.   gzip "$pkgdir"/usr/share/man/man1/google-chrome.1
  47.  
  48.   # License
  49.   install -Dm644 eula_text.html "$pkgdir"/usr/share/licenses/google-chrome/eula_text.html
  50.  
  51.   msg2 "Symlinking missing Udev lib"
  52.   ln -s /usr/lib/libudev.so.1 "$pkgdir"/opt/google/chrome-${_channel}/libudev.so.0
  53.  
  54.   msg2 "Removing the Debian-intended cron job and duplicated images"
  55.   rm -r "$pkgdir"/etc/cron.daily/ "$pkgdir"/opt/google/chrome-${_channel}/cron/
  56.   rm "$pkgdir"/opt/google/chrome-${_channel}/product_logo_*.png
  57. }