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

dropbox-2.6.27 pkgbuild

By: a guest on Apr 13th, 2014  |  syntax: None  |  size: 1.98 KB  |  views: 151  |  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. # Contributor: David Manouchehri <d@32t.ca>
  4.  
  5. pkgname=dropbox
  6. pkgver=2.6.27
  7. pkgrel=1
  8. pkgdesc="A free service that lets you bring your photos, docs, and videos anywhere and share them easily."
  9. arch=("i686" "x86_64")
  10. url="http://www.dropbox.com"
  11. license=(custom)
  12. depends=("dbus-glib" "gtk2" "libsm")
  13. optdepends=(
  14.     'ufw-extras: ufw rules for dropbox'
  15. )
  16. conflicts=("dropbox-experimental")
  17. options=('!strip' '!upx')
  18.  
  19. _source_arch="x86"
  20. [ "$CARCH" = "x86_64" ] && _source_arch="x86_64"
  21.  
  22. sha256sums=('4efe650dec6028d6b90ef59c5b8d4bbbb6fa9fb94bf8202669c5b5a497eaea9a'
  23.             'e7d245f5d1a3d5322614b61400ae2913a8caef44bc86717ff7d8197a15dd7f01'
  24.             'dd8fdb362c0bba8d789010594f021671ff00e535fc75e13da855f43bc7a4b3aa'
  25.             '513d7b8395ade6f573b1397acf300326c8dc97e868bca0bc219fb3336b0d4533'
  26.             'c7253ef6806b7efdec6f3d7e1eeaa90f48813e80715733ab9c902123edfdae27')
  27. [ "$CARCH" = "x86_64" ] && sha256sums[0]='d3825734c10fad5920c6c84d2145216734c7051224d8dc1b19da79cc91113226'
  28.  
  29. source=("https://dl.dropboxusercontent.com/u/17/${pkgname}-lnx.${_source_arch}-${pkgver}.tar.gz"
  30.         "dropbox.png"
  31.         "dropbox.desktop"
  32.         "terms.txt"
  33.         "dropbox.service")
  34.  
  35. package() {
  36.         install -d "$pkgdir/opt"
  37.         cp -R "$srcdir/.dropbox-dist" "$pkgdir/opt/dropbox"
  38.  
  39.         find "$pkgdir/opt/dropbox/" -type f -exec chmod 644 {} \;
  40.         chmod 755 "$pkgdir/opt/dropbox/dropboxd"
  41.         chmod 755 "$pkgdir/opt/dropbox/dropbox"
  42.  
  43.         install -d "$pkgdir/usr/bin"
  44.         ln -s "/opt/dropbox/dropboxd" "$pkgdir/usr/bin/dropboxd"
  45.  
  46.         install -Dm644 "$srcdir/dropbox.desktop" "$pkgdir/usr/share/applications/dropbox.desktop"
  47.         install -Dm644 "$srcdir/dropbox.png" "$pkgdir/usr/share/pixmaps/dropbox.png"
  48.         install -Dm644 "$srcdir/terms.txt" "$pkgdir/usr/share/licenses/$pkgname/terms.txt"
  49.         install -Dm644 "$srcdir/dropbox.service" "$pkgdir/usr/lib/systemd/system/dropbox@.service"
  50. }