Advertisement
ava1ar

chrome-remote-desktop

Jul 10th, 2014
762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.91 KB | None | 0 0
  1. # Maintainer: Mateus Rodrigues Costa <charles [dot] costar [at] gmail [dot] com>
  2.  
  3. pkgname=chrome-remote-desktop
  4. pkgver=35.0.1916.17
  5. pkgrel=5
  6. pkgdesc="Allows you to securely access your computer over the Internet through Chrome."
  7. url="https://chrome.google.com/webstore/detail/gbchcmhmhahfdphkhkmpfmihenigjmpp"
  8. arch=('i686' 'x86_64')
  9. license=('BSD')
  10. install=chrome-remote-desktop.install
  11. depends=('python2' 'python2-psutil' 'gconf' 'gtk2' 'nss'
  12.          'xorg-xdpyinfo' 'xorg-setxkbmap' 'xorg-server-xvfb' 'xorg-xauth')
  13. source=("chrome-remote-desktop.service" 'arch.patch::http://pastebin.com/raw.php?i=JtmP5kDk')
  14. md5sums=('SKIP' '6e31c2e0f6c033d4f9a210073c440dea')
  15. _arch=i386
  16. if [ "$CARCH" == i686 ]; then
  17.   md5sums+=('a00b511e9d0e3289ba4225b3fd2b311c')
  18. elif [ "$CARCH" == x86_64 ]; then
  19.   _arch=amd64
  20.   md5sums+=('ac95dbefad5f9fc642d769823985fac7')
  21. fi
  22. source+=(https://dl.google.com/linux/direct/${pkgname}_current_$_arch.deb)
  23.  
  24. package() {
  25.   msg2 "Extracting data.tar.gz"
  26.   bsdtar -xf data.tar.gz -C "$pkgdir/"
  27.  
  28.   msg2 "Patching Python script"
  29.   sed -e '1s/python/python2/' -i "$pkgdir"/opt/google/chrome-remote-desktop/chrome-remote-desktop
  30.  
  31.   msg2 "Removing things that won't work"
  32.   rm -R "$pkgdir"/etc/cron.daily/
  33.   rm -R "$pkgdir"/etc/init.d/
  34.   rm -R "$pkgdir"/etc/pam.d/
  35.  
  36.   msg2 "They forgot the LICENSE file, using a placeholder"
  37.   install -Dm644 "$pkgdir"/usr/share/doc/$pkgname/copyright "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  38.  
  39.   msg2 "Adding a systemd user service"
  40.   mkdir -p "$pkgdir"/usr/lib/systemd/user/
  41.   install -m644 $pkgname.service "$pkgdir"/usr/lib/systemd/user/
  42.  
  43.   msg2 "Creating symlinks for chromium compatibility"
  44.   mkdir -p "$pkgdir"/etc/chromium/native-messaging-hosts
  45.   ln -sr "$pkgdir"/etc/opt/chrome/native-messaging-hosts/* "$pkgdir"/etc/chromium/native-messaging-hosts
  46.  
  47.   msg2 "Patching for arch compatibility"
  48.   cd "$pkgdir"
  49.   patch -p1 < "$startdir"/arch.patch
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement