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

Dropbox PKGBUILD

By: a guest on Aug 3rd, 2012  |  syntax: Bash  |  size: 1.51 KB  |  views: 22  |  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=1.4.12
  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=("bzip2" "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. md5sums=('3488299b1d91591d3a5ba7e2c02ec220' '9ec50da2ce59ed8c17606394b9c5e1c0' '20c97082211cf02af494043b93d5feb8' '5331288d5f5972dc2e9311d0f28dac76')
  19. [ "$CARCH" = "x86_64" ] && md5sums[0]='a54dd81749c02157f1691ef4ac570305'
  20.  
  21. source=("https://dl-web.dropbox.com/u/17/${pkgname}-lnx.${_source_arch}-${pkgver}.tar.gz" "dropbox.png" "dropbox.desktop" "terms.txt")
  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.         chmod 755 "$pkgdir/opt/dropbox/dropboxd"
  30.         chmod 755 "$pkgdir/opt/dropbox/dropbox"
  31.  
  32.         install -d "$pkgdir/usr/bin"
  33.         ln -s "/opt/dropbox/dropboxd" "$pkgdir/usr/bin/dropboxd"
  34.  
  35.         install -D -m 644 "$srcdir/dropbox.desktop" "$pkgdir/usr/share/applications/dropbox.desktop"
  36.         install -D -m 644 "$srcdir/dropbox.png" "$pkgdir/usr/share/pixmaps/dropbox.png"
  37.         install -D -m 644 "$srcdir/terms.txt" "$pkgdir/usr/share/licenses/$pkgname/terms.txt"
  38. }