This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

spideroak-beta 4.8.0-2

By: a guest on Nov 9th, 2012  |  syntax: Bash  |  size: 1.88 KB  |  views: 35  |  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: Alessio Sergi <asergi at archlinux dot us>
  2. # Contributor: Limao Luo <luolimao@gmail.com>
  3. # Maintainer: ava1ar (mail(dot)avatar(at)gmail(dot)com)
  4.  
  5. pkgname=spideroak-beta
  6. _pkgname=spideroak
  7. _PkgName=SpiderOak
  8. pkgver=4.8.0
  9. pkgrel=2
  10. pkgdesc="Secure file backup, sync and sharing client"
  11. arch=('i686' 'x86_64')
  12. url="https://spideroak.com/"
  13. license=('custom')
  14. depends=(qt krb5 python2)
  15. provides=($_pkgname)
  16. conflicts=($_pkgname)
  17. options=('!strip')
  18. install=$pkgname.install
  19. _arch="$CARCH"
  20. [ "$CARCH" = 'i686' ] && _arch='i386'
  21. source=("${_pkgname}_${pkgver}_${_arch}.rpm"::"https://spideroak.com/directdownload?platform=fedora&arch=$_arch&beta=yes&code="
  22.         "terms.txt")
  23. sha1sums=('9c6c643d6f7f8d6176e63f6da6e092a3125d976a'
  24.           'f287fdbad966ac9ae4951a1932e9be7e82112728')
  25. [ "$CARCH" = 'i686' ] && sha1sums[0]='4bfe6d31217dbcfefcf71b7f9aca623e96e59bc0'
  26.  
  27. package() {
  28.     # install config files
  29.     install -Dm644 $srcdir/etc/dbus-1/system.d/$_PkgName.dbus.conf $pkgdir/etc/dbus-1/system.d/$_pkgname.dbus.conf
  30.  
  31.     # install app in /opt
  32.     install -d $pkgdir/opt/
  33.     cp -r $srcdir/opt/* $pkgdir/opt/
  34.  
  35.     # install start script file
  36.     install -Dm755 $srcdir/usr/bin/SpiderOak $pkgdir/usr/bin/SpiderOak
  37.  
  38.     # install desktop and pixmap files
  39.     install -Dm644 $srcdir/usr/share/applications/$_PkgName.desktop $pkgdir/usr/share/applications/$_pkgname.desktop
  40.     install -Dm644 $srcdir/usr/share/pixmaps/$_PkgName.png $pkgdir/usr/share/pixmaps/$_pkgname.png
  41.  
  42.     # fix desktop file
  43.     sed -i \
  44.         -e "/Encoding=UTF-8/d" \
  45.         -e "/^Name=/s: Backup::" \
  46.         -e "/^Comment=/s:$_PkgName ::" \
  47.         -e "/^Categories=/s:$_PkgName;::" \
  48.         -e "/^Icon=/s:=.*$:=$_pkgname:" \
  49.         -e "/^Exec=/s:=.*$:=$_PkgName:" \
  50.         $pkgdir/usr/share/applications/$_pkgname.desktop
  51.  
  52.     # install custom license file
  53.     install -Dm644 terms.txt $pkgdir/usr/share/licenses/$_pkgname/terms.txt
  54. }
clone this paste RAW Paste Data