Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

wuala PKGBUILD

By: unikum on Jul 29th, 2011  |  syntax: Bash  |  size: 2.00 KB  |  hits: 133  |  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. # Wuala: Installer: Arch
  2.  
  3. pkgname=wuala
  4. pkgver=0.2
  5. pkgrel=1
  6. pkgdesc="A new way of storing, sharing and publishing files on the Internet.  It's free, simple and secure."
  7. arch=('i686' 'x86_64')
  8. url="http://www.wuala.com/"
  9. license=("custom")
  10. depends=('java-runtime' 'xdg-utils' 'fuse' 'hicolor-icon-theme')
  11. options=(!emptydirs)
  12. if [ "$CARCH" == "i686" ]; then
  13.   source=("http://cdn.wuala.com/repo/rh/${pkgname}-current.i386.rpm")
  14.   md5sums=('d822aa25d1824c1a0d0403d10e11b036')
  15. fi
  16. if [ "$CARCH" == "x86_64" ]; then
  17.   source=("http://cdn.wuala.com/repo/rh/${pkgname}-current.x86_64.rpm")
  18.   md5sums=('37d42daef028f5be657a500308c338c7')
  19. fi
  20. makedepends=('rpmextract')
  21. install=${pkgname}.install
  22. conflicts=('wuala-daemon')
  23.  
  24. build() {
  25.   cd ${srcdir}
  26.   rpmextract.sh ${pkgname}-current.i386.rpm
  27. }
  28.  
  29. package() {
  30.   cd ${srcdir}
  31.   install -d ${pkgdir}/usr/bin
  32.   install -d ${pkgdir}/usr/share/man/man1
  33.   install -Dm 755 usr/bin/* ${pkgdir}/usr/bin/
  34.   install -Dm 644 usr/lib/${pkgname}/loader3.jar ${pkgdir}/usr/lib/${pkgname}/loader3.ja
  35.   install -Dm 644 usr/share/applications/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
  36.   install -Dm 644 usr/share/doc/wuala-0.2/copyright ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
  37.   install -Dm 644 usr/share/icons/hicolor/16x16/apps/${pkgname}.png ${pkgdir}/usr/share/icons/hicolor/16x16/apps/${pkgname}.png
  38.   install -Dm 644 usr/share/icons/hicolor/48x48/apps/${pkgname}.png ${pkgdir}/usr/share/icons/hicolor/48x48/apps/${pkgname}.png
  39.   install -Dm 644 usr/share/icons/HighContrastInverse/48x48/apps/${pkgname}.png ${pkgdir}/usr/share/icons/HighContrastInverse/48x48/apps/${pkgname}.png
  40.   install -Dm 644 usr/share/man/man1/* ${pkgdir}/usr/share/man/man1/
  41. if [ "$CARCH" == "i686" ]; then
  42.   install -Dm 644 usr/share/${pkgname}/Program4/Wuala.388 ${pkgdir}/usr/share/${pkgname}/Program4/Wuala.388
  43. fi
  44. if [ "$CARCH" == "x86_64" ]; then
  45.   install -Dm 644 usr/share/${pkgname}/Program17/Wuala.65 ${pkgdir}/usr/share/${pkgname}/Program17/Wuala.65
  46.  
  47. fi
  48. }