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

Dropbox 1.6.11 - Arch Linux PKGBUILD

By: a guest on Dec 31st, 2012  |  syntax: Bash  |  size: 1.94 KB  |  views: 249  |  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. # Changelog:
  5. # 12/28/2012 - Fix a hang that affects a handful of people.
  6.  
  7. pkgname=dropbox
  8. pkgver=1.6.11
  9. pkgrel=1
  10. pkgdesc="A free service that lets you bring your photos, docs, and videos anywhere and share them easily."
  11. arch=("i686" "x86_64")
  12. url="http://www.dropbox.com"
  13. license=(custom)
  14. depends=("dbus-glib" "gtk2" "libsm")
  15. conflicts=("dropbox-experimental")
  16. options=('!strip' '!upx')
  17.  
  18. _source_arch="x86"
  19. [ "$CARCH" = "x86_64" ] && _source_arch="x86_64"
  20.  
  21. sha256sums=('cdd74ea6394e64452c9095a1b0bc2193c7a10e7295d1549da3595426f5524b27'
  22.             '8b8af2d6a5786d7fa259660a34c47fa0a7534cd112e70d71ee53b1f786baf530'
  23.             'dd8fdb362c0bba8d789010594f021671ff00e535fc75e13da855f43bc7a4b3aa'
  24.             'b9e020c378c318e72857bb6cd859c74e8da1300f34cee5bfec89c4f7a89770a9'
  25.             'c7253ef6806b7efdec6f3d7e1eeaa90f48813e80715733ab9c902123edfdae27')
  26. [ "$CARCH" = "x86_64" ] && sha256sums[0]='b0a83ab6fd1cc3ea4eadb93a0f77a1bb12aa57aeb32b3b7a5a059917ab353113'
  27.  
  28. source=("https://dl-web.dropbox.com/u/17/${pkgname}-lnx.${_source_arch}-${pkgver}.tar.gz"
  29.         "dropbox.png"
  30.         "dropbox.desktop"
  31.         "terms.txt"
  32.         "dropbox.service")
  33.  
  34. build() {
  35.         install -d "$pkgdir/opt"
  36.         cp -R "$srcdir/.dropbox-dist" "$pkgdir/opt/dropbox"
  37.  
  38.         find "$pkgdir/opt/dropbox/" -type f -exec chmod 644 {} \;
  39.         chmod 755 "$pkgdir/opt/dropbox/dropboxd"
  40.         chmod 755 "$pkgdir/opt/dropbox/dropbox"
  41.  
  42.         install -d "$pkgdir/usr/bin"
  43.         ln -s "/opt/dropbox/dropboxd" "$pkgdir/usr/bin/dropboxd"
  44.  
  45.         install -Dm644 "$srcdir/dropbox.desktop" "$pkgdir/usr/share/applications/dropbox.desktop"
  46.         install -Dm644 "$srcdir/dropbox.png" "$pkgdir/usr/share/pixmaps/dropbox.png"
  47.         install -Dm644 "$srcdir/terms.txt" "$pkgdir/usr/share/licenses/$pkgname/terms.txt"
  48.         install -Dm644 "$srcdir/dropbox.service" "$pkgdir/usr/lib/systemd/system/dropbox@.service"
  49. }