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

PKGBUILD - google-chrome-stable

By: tarkin88 on Dec 4th, 2013  |  syntax: Bash  |  size: 2.32 KB  |  views: 122  |  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/Stable%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. # Edited for new links tree by: tarkin88 <franksg88 at gmail dot com>
  8. pkgname=google-chrome
  9. pkgver=31.0.1650.57
  10. pkgrel=1
  11. pkgdesc="An attempt at creating a safer, faster, and more stable browser (Stable Channel)"
  12. arch=('i686' 'x86_64')
  13. url="https://www.google.com/chrome"
  14. license=('custom:chrome')
  15. depends=('alsa-lib' 'gconf' 'gtk2' 'hicolor-icon-theme' 'libpng' 'libxslt' 'libxss' 'libxtst' 'nss' 'ttf-font' 'xdg-utils')
  16. optdepends=('kdebase-kdialog: needed for file dialogs in KDE'
  17.             'ttf-google-fonts-git')
  18. provides=("google-chrome=$pkgver")
  19. conflicts=('google-chrome')
  20. options=('!emptydirs' '!strip')
  21. install=$pkgname.install
  22. _channel=stable
  23. _arch=i386
  24. [ "$CARCH" = 'x86_64' ] && _arch=amd64
  25. source=("https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
  26.         'https://www.google.com/intl/en/chrome/browser/privacy/eula_text.html')
  27. md5sums=('71b197df869c71ec662732b830e4e98d'
  28.          'ba19ea498f294975d320ff0b26a6cd63')
  29. [ "$CARCH" = 'x86_64' ] && md5sums[0]='71b197df869c71ec662732b830e4e98d'
  30.  
  31. PKGEXT='.pkg.tar'
  32.  
  33. package() {
  34.   msg2 "Extracting the data.tar.lzma"
  35.   bsdtar -xf data.tar.lzma -C "$pkgdir/"
  36.  
  37.   msg2 "Moving stuff in place"
  38.   # Desktop
  39.   mv "$pkgdir"/opt/google/chrome/google-chrome.desktop "$pkgdir"/usr/share/applications/
  40.  
  41.   # Icons
  42.   for i in 16 22 24 32 48 64 128 256; do
  43.     install -Dm644 "$pkgdir"/opt/google/chrome/product_logo_${i}.png "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/google-chrome.png
  44.   done
  45.  
  46.   # Man page
  47.   gzip "$pkgdir"/usr/share/man/man1/google-chrome.1
  48.  
  49.   # License
  50.   install -Dm644 eula_text.html "$pkgdir"/usr/share/licenses/google-chrome/eula_text.html
  51.  
  52.   msg2 "Symlinking missing Udev lib"
  53.   ln -s /usr/lib/libudev.so.1 "$pkgdir"/opt/google/chrome/libudev.so.0
  54.  
  55.   msg2 "Removing the Debian-intended cron job and duplicated images"
  56.   rm -r "$pkgdir"/etc/cron.daily/ "$pkgdir"/opt/google/chrome/cron/
  57.   rm "$pkgdir"/opt/google/chrome/product_logo_*.png
  58. }
clone this paste RAW Paste Data