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

Wuala PKGBUILD

By: a guest on Dec 3rd, 2011  |  syntax: Bash  |  size: 2.48 KB  |  views: 60  |  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: Sven Schober <sschober (at) sssm (dot) de>
  2. # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
  3. # Contributor: Unikum <unikum (dot) pm (at) gmail (dot) com>
  4. # Contributor: Techlive Zheng <techlivezheng (at) gmail (dot) com>
  5.  
  6. pkgname=wuala
  7. pkgver=2
  8. pkgrel=20111204
  9. pkgdesc="A new way of storing, sharing and publishing files on the Internet.  It's free, simple and secure."
  10. arch=('i686' 'x86_64')
  11. url="http://www.wuala.com/"
  12. license=("custom")
  13. depends=('java-runtime' 'gnupg' 'xdg-utils' 'fuse' 'hicolor-icon-theme')
  14. optdepends=('imagemagick')
  15. options=(!emptydirs)
  16. if [ "$CARCH" == "i686" ]; then
  17.   source=("${pkgname}-current.i386.${pkgrel}.rpm::http://cdn.wuala.com/repo/rh/${pkgname}-current.i386.rpm")
  18.   md5sums=('751990c7492c2a6b562708192e08fec1')
  19. fi
  20. if [ "$CARCH" == "x86_64" ]; then
  21.   source=("${pkgname}-current.x86_64.${pkgrel}.rpm::http://cdn.wuala.com/repo/rh/${pkgname}-current.x86_64.rpm")
  22.   md5sums=('b675367de47992853d04167d5b9cee7e')
  23. fi
  24. makedepends=('rpmextract')
  25. install=${pkgname}.install
  26.  
  27. build() {
  28.   cd ${srcdir}
  29.   if [ "$CARCH" == "i686" ]; then
  30.     rpmextract.sh ${pkgname}-current.i386.${pkgrel}.rpm
  31.   fi
  32.   if [ "$CARCH" == "x86_64" ]; then
  33.     rpmextract.sh ${pkgname}-current.x86_64.${pkgrel}.rpm
  34.   fi
  35. }
  36.  
  37. package() {
  38.   cd ${srcdir}
  39.   install -d ${pkgdir}/usr/bin
  40.   install -d ${pkgdir}/usr/share/man/man1
  41.   install -Dm 755 usr/bin/* ${pkgdir}/usr/bin/
  42.   install -Dm 644 usr/lib/${pkgname}/loader3.jar ${pkgdir}/usr/lib/${pkgname}/loader3.jar
  43.   install -Dm 644 usr/share/applications/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
  44.   install -Dm 644 usr/share/doc/wuala-0.2/copyright ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
  45.   install -Dm 644 usr/share/icons/hicolor/16x16/apps/${pkgname}.png ${pkgdir}/usr/share/icons/hicolor/16x16/apps/${pkgname}.png
  46.   install -Dm 644 usr/share/icons/hicolor/48x48/apps/${pkgname}.png ${pkgdir}/usr/share/icons/hicolor/48x48/apps/${pkgname}.png
  47.   install -Dm 644 usr/share/icons/HighContrastInverse/48x48/apps/${pkgname}.png ${pkgdir}/usr/share/icons/HighContrastInverse/48x48/apps/${pkgname}.png
  48.   install -Dm 644 usr/share/man/man1/* ${pkgdir}/usr/share/man/man1/
  49.  
  50.   if [ "$CARCH" == "i686" ]; then
  51.     install -Dm 644 usr/share/${pkgname}/Program4/Wuala.396 ${pkgdir}/usr/share/${pkgname}/Program4/Wuala.396
  52.   fi
  53.   if [ "$CARCH" == "x86_64" ]; then
  54.     install -Dm 644 usr/share/${pkgname}/Program17/Wuala.65 ${pkgdir}/usr/share/${pkgname}/Program17/Wuala.73
  55.  
  56.   fi
  57. }
  58.  
clone this paste RAW Paste Data