Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD - dropbox 1.1.31

By: a guest on May 4th, 2011  |  syntax: None  |  size: 1.56 KB  |  views: 517  |  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. # Contributor: Massimiliano Torromeo <Massimiliano DOT Torromeo AT gmail DOT com>
  2. # Contributor: Tom < tomgparchaur at gmail dot com >
  3.  
  4. pkgname=dropbox
  5. pkgver=1.1.31
  6. pkgrel=1
  7. pkgdesc="Secure backup, sync and sharing made easy."
  8. arch=("i686" "x86_64")
  9. url="http://www.dropbox.com"
  10. license=(custom)
  11. depends=("bzip2" "dbus-glib" "gtk2" "libsm")
  12. conflicts=("dropbox-experimental")
  13. options=('!strip')
  14.  
  15. _source_arch="x86"
  16. [ "$CARCH" = "x86_64" ] && _source_arch="x86_64"
  17.  
  18. md5sums=('2b6f04527b0f54d502a07216bf1cc5f9' '9ec50da2ce59ed8c17606394b9c5e1c0' 'b34263a03e5ebfb3ec6615b35273a78f' '619b5a2e49b48f564423a850c94312d7')
  19. [ "$CARCH" = "x86_64" ] && md5sums[0]='a607cae9520626a208b51bb6d4230d5d'
  20.  
  21. source=("https://dl-web.dropbox.com/u/17/${pkgname}-lnx.${_source_arch}-${pkgver}.tar.gz" "dropbox.png" "dropbox.desktop" "terms.html")
  22.  
  23. build() {
  24.         install -d "$pkgdir/opt"
  25.         rm "$srcdir/.dropbox-dist/libstdc++.so.6"
  26.         cp -R "$srcdir/.dropbox-dist" "$pkgdir/opt/dropbox"
  27.  
  28.         find ${pkgdir}/opt/dropbox/ -type f -exec chmod 644 {} \;
  29.         find ${pkgdir}/opt/dropbox/ -type d -exec chmod 755 {} \;
  30.         chmod 755 ${pkgdir}/opt/dropbox/dropboxd
  31.         chmod 755 ${pkgdir}/opt/dropbox/dropbox
  32.         chown -R root.root ${pkgdir}/opt/dropbox
  33.  
  34.         install -d "$pkgdir/usr/bin"
  35.         ln -s "/opt/dropbox/dropboxd" "$pkgdir/usr/bin/dropboxd"
  36.  
  37.         install -D -m 644 "$srcdir/dropbox.desktop" "$pkgdir/usr/share/applications/dropbox.desktop"
  38.         install -D -m 644 "$srcdir/dropbox.png" "$pkgdir/usr/share/pixmaps/dropbox.png"
  39.         install -D -m 644 "$srcdir/terms.html" "$pkgdir/usr/share/licenses/$pkgname/terms.html"
  40. }
clone this paste RAW Paste Data