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

Untitled

By: a guest on Mar 12th, 2013  |  syntax: None  |  size: 1.87 KB  |  views: 105  |  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: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
  2. # Contributor: Tom < tomgparchaur at gmail dot com >
  3.  
  4. pkgname=dropbox
  5. pkgver=2.0.0
  6. pkgrel=1
  7. pkgdesc="A free service that lets you bring your photos, docs, and videos anywhere and share them easily."
  8. arch=("i686" "x86_64")
  9. url="http://www.dropbox.com"
  10. license=(custom)
  11. depends=("dbus-glib" "gtk2" "libsm")
  12. conflicts=("dropbox-experimental")
  13. options=('!strip' '!upx')
  14.  
  15. _source_arch="x86"
  16. [ "$CARCH" = "x86_64" ] && _source_arch="x86_64"
  17.  
  18. sha256sums=('6e1d04a3b7d85e7ae622df0d4d973c412eca88ef13ac199e7e38752c12d258c9'
  19.             '8b8af2d6a5786d7fa259660a34c47fa0a7534cd112e70d71ee53b1f786baf530'
  20.             'dd8fdb362c0bba8d789010594f021671ff00e535fc75e13da855f43bc7a4b3aa'
  21.             'b9e020c378c318e72857bb6cd859c74e8da1300f34cee5bfec89c4f7a89770a9'
  22.             'c7253ef6806b7efdec6f3d7e1eeaa90f48813e80715733ab9c902123edfdae27')
  23. [ "$CARCH" = "x86_64" ] && sha256sums[0]='28d7a69fe2719c92c809557384116f369359a005ffc2657d96450d3bbd77a0e0'
  24.  
  25. source=("https://dl-web.dropbox.com/u/17/${pkgname}-lnx.${_source_arch}-${pkgver}.tar.gz"
  26.         "dropbox.png"
  27.         "dropbox.desktop"
  28.         "terms.txt"
  29.         "dropbox.service")
  30.  
  31. package() {
  32.         install -d "$pkgdir/opt"
  33.         cp -R "$srcdir/.dropbox-dist" "$pkgdir/opt/dropbox"
  34.  
  35.         find "$pkgdir/opt/dropbox/" -type f -exec chmod 644 {} \;
  36.         chmod 755 "$pkgdir/opt/dropbox/dropboxd"
  37.         chmod 755 "$pkgdir/opt/dropbox/dropbox"
  38.  
  39.         install -d "$pkgdir/usr/bin"
  40.         ln -s "/opt/dropbox/dropboxd" "$pkgdir/usr/bin/dropboxd"
  41.  
  42.         install -Dm644 "$srcdir/dropbox.desktop" "$pkgdir/usr/share/applications/dropbox.desktop"
  43.         install -Dm644 "$srcdir/dropbox.png" "$pkgdir/usr/share/pixmaps/dropbox.png"
  44.         install -Dm644 "$srcdir/terms.txt" "$pkgdir/usr/share/licenses/$pkgname/terms.txt"
  45.         install -Dm644 "$srcdir/dropbox.service" "$pkgdir/usr/lib/systemd/system/dropbox@.service"
  46. }
clone this paste RAW Paste Data