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

retroshare-0.5.1-PKGBUILD

By: a guest on Mar 1st, 2011  |  syntax: Bash  |  size: 3.59 KB  |  views: 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. # Note- the .patch file needs to be edited - and check your MD5sums
  2. #
  3.  
  4. # Contributor: funkyou
  5. # Maintainer:  Tristero <tristero@online.de>
  6.  
  7. pkgname=retroshare
  8. _pkgver=0.5.1
  9. pkgver=${_pkgver}.a
  10. pkgrel=1
  11. pkgdesc="Serverless encrypted instant messenger with filesharing, chatgroups, e-mail."
  12. arch=('i686' 'x86_64')
  13. url="http://retroshare.sourceforge.net/"
  14. license=('LGPL' 'GPL')
  15. depends=('qt' 'openssl' 'libupnp' 'gpgme')
  16. install="${pkgname}.install"
  17.  
  18. source=(http://sourceforge.net/projects/retroshare/files/RetroShare/0.5.1a/RetroShare-v0.5.1a.tar.gz/download \
  19.         retroshare-v0.5.0g-arch_compile.patch \
  20.         retroshare-gui_experimental.patch \
  21.         ${pkgname}.desktop)
  22.  
  23. build() {
  24.  
  25.   # NOTE Setting this to TRUE activates the compilation of some experimental
  26.   # non-release features of retroshare as the support for blogs, the
  27.   # plugin architecture and some plugins.
  28.   local _EXPERIMENTAL_VERSION=FALSE
  29.  
  30.   cd ${srcdir}
  31.   patch -N -p0 -i ${startdir}/retroshare-v0.5.0g-arch_compile.patch
  32.  
  33.   msg "Compile libretroshare"
  34.   cd ${srcdir}/${_pkgver}/libretroshare/src
  35.   qmake || return 1
  36.   make || return 1
  37.  
  38.   msg "Compile libbitdht"
  39.   cd ${srcdir}/${_pkgver}/libbitdht/src
  40.   qmake || return 1
  41.   make || return 1
  42.  
  43.   msg "Compile retroshare-gui"
  44.   cd ${srcdir}/${_pkgver}/retroshare-gui/src
  45.  
  46.   if [ "x$_EXPERIMENTAL_VERSION" == "xTRUE" ] ; then
  47.     echo ""
  48.     msg "   ! EXPERIMENTAL VERSION!"
  49.     msg "   ! Unreleased features like plugins, blogs etc. may be unstable!"
  50.     echo ""
  51.     msg "Patch retroshare to use experimental features"
  52.     patch -N -p0 -i ${startdir}/retroshare-gui_experimental.patch || return 1
  53.     msg "Compile retroshare plugins"
  54.     cd ${srcdir}/${_pkgver}/plugins/
  55.     qmake || return 1
  56.  
  57.     make || return 1
  58.     cd ${srcdir}/${_pkgver}/retroshare-gui/src
  59.   fi
  60.  
  61.   qmake || return 1
  62.   make || return 1
  63.  
  64.   # --- Install Files ---
  65.  
  66.   msg "Install files to fakeroot-environment"
  67.  
  68.   # - Binaries
  69.   install -D -m 644 \
  70.     "${srcdir}/${_pkgver}/libretroshare/src/lib/libretroshare.a" \
  71.     "${pkgdir}/usr/lib/libretroshare.a"
  72.   install -D -m 755 \
  73.     "${srcdir}/${_pkgver}/retroshare-gui/src/RetroShare" \
  74.     "${pkgdir}/usr/bin/${pkgname}"
  75.  
  76.   if [ "x$_EXPERIMENTAL_VERSION" == "xTRUE" ] ; then
  77.     # - Plugins
  78.     install -D -m 755 \
  79.     "${srcdir}/${_pkgver}/plugins/bin/libcalendar_plugin.so" \
  80.     "${pkgdir}/usr/lib/retroshare/plugins/libcalendar_plugin.so" || return 1
  81.     install -D -m 755 \
  82.     "${srcdir}/${_pkgver}/plugins/bin/libpuzzle_plugin.so" \
  83.     "${pkgdir}/usr/lib/retroshare/plugins/libpuzzle_plugin.so" || return 1
  84.     install -D -m 755 \
  85.     "${srcdir}/${_pkgver}/plugins/bin/libqcheckers_plugin.so" \
  86.     "${pkgdir}/usr/lib/retroshare/plugins/libqcheckers_plugin.so" || return 1
  87.     install -D -m 755 \
  88.     "${srcdir}/${_pkgver}/plugins/bin/libqdiagram_plugin.so" \
  89.     "${pkgdir}/usr/lib/retroshare/plugins/libqdiagram_plugin.so" || return 1
  90.   fi
  91.  
  92.   # - Icons
  93.   install -D -m 644 \
  94.     "${srcdir}/${_pkgver}/retroshare-gui/src/gui/images/retrosharelogo1.png" \
  95.     "${pkgdir}/usr/share/pixmaps/retroshare_blue.png" || return 1
  96.   install -D -m 644 \
  97.     "${srcdir}/${_pkgver}/retroshare-gui/src/gui/images/retrosharelogo2.png" \
  98.     "${pkgdir}/usr/share/pixmaps/retroshare.png" || return 1
  99.  
  100.   # - Desktop File
  101.   install -D -m 644 \
  102.     "${srcdir}/${pkgname}.desktop" \
  103.     "${pkgdir}/usr/share/applications/${pkgname}.desktop" || return 1
  104. }
  105.  
  106. md5sums=('4cedfc0a6f2c39933898b0f6b5aeef01'
  107.          'fb7b4710d33a93378c57ccfbec2b3f98'
  108.          '704cae892a2f3adf1bf7415acd57d47c'
  109.          'f6dc374d95c775bc587ef13841abdab2')
clone this paste RAW Paste Data