SHARE
TWEET

kokua-secondlife-3.8.4.37073-2

a guest Nov 1st, 2015 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: GordonGR
  2. # Contributor: mikers
  3. # Contributor: Splex
  4.  
  5.  
  6. pkgname=kokua-secondlife
  7. pkgver=3.8.4.37073
  8. _pkgver=3_8_4_37073
  9. _pkgprever=3.8.4
  10. pango_ver=1.36.8
  11.  
  12. pkgrel=2
  13. pkgdesc="An Open Source third party viewer for Second LifeĀ® (secondlife), only."
  14. url="http://www.kokuaviewer.org"
  15. license=('GPL')
  16. arch=('i686' 'x86_64')
  17. depends=('apr-util' 'gtk2' 'libgl' 'libidn' 'libjpeg-turbo' 'mesa' 'nss' 'sdl' 'glu' 'pangox-compat')
  18. optdepends=('libpulse: for PulseAudio support' 'alsa-lib: for ALSA support' 'nvidia-utils: for NVIDIA support' 'flashplugin: for inworld Flash support' 'gstreamer0.10: for video support, may need good, bad and ugly plugins' 'lib32-freealut: for OpenAL support')
  19. replaces=('kokua-bin')
  20. conflicts=('kokua-bin')
  21.  
  22. #http://sourceforge.net/projects/kokua.team-purple.p/files/Kokua-${_pkgprever}/Kokua_${_pkgver}_${CARCH}.tar.bz2"
  23. source_i686=("http://bitbucket.org/kokua/downloads/downloads/Kokua_${_pkgver}_i686.tar.bz2"
  24.              'kokua-secondlife.desktop'
  25.              'kokua-secondlife.launcher'
  26.              "http://download.gnome.org/sources/pango/${pango_ver:0:4}/pango-${pango_ver}.tar.xz")
  27.        
  28. #"http://sourceforge.net/projects/kokua.team-purple.p/files/Kokua-${_pkgprever}/Kokua_64_${_pkgver}_${CARCH}.tar.bz2"
  29. source_x86_64=("http://bitbucket.org/kokua/downloads/downloads/Kokua_64_${_pkgver}_x86_64.tar.bz2"
  30.                 'kokua-secondlife.desktop'
  31.                 'kokua-secondlife.launcher'
  32.                 "http://download.gnome.org/sources/pango/${pango_ver:0:4}/pango-${pango_ver}.tar.xz")
  33.  
  34. md5sums_i686=('e0e7e2a8981152594511d08709307de2'
  35.               '3893a2c8ae9cb8e2adb4d7c47750029b'
  36.               'e12fd7bd333f4f810dec66f1be17c71c'
  37.               '217a9a753006275215fa9fa127760ece')
  38. md5sums_x86_64=('956c11edeefcdf296b9e00514b62ace7'
  39.                 '3893a2c8ae9cb8e2adb4d7c47750029b'
  40.                 'e12fd7bd333f4f810dec66f1be17c71c'
  41.                 '217a9a753006275215fa9fa127760ece')
  42.  
  43. package() {
  44. # Workaround for http://sourceforge.net/p/team-purple/kokua/tickets/380/
  45. cd $srcdir/pango-${pango_ver}
  46. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-included-modules=basic-fc
  47. make
  48. mkdir ../pango-install
  49. make -j1 DESTDIR=$(pwd)/../pango-install install
  50. cd ..
  51. if [ "$CARCH" = "i686" ]; then
  52.     cp -aiv pango-install/usr/lib/libpangoft2-1.0.so* Kokua_${_pkgver}_$CARCH/lib/
  53.     rm -v Kokua_${_pkgver}_$CARCH/lib/libgdk_pixbuf-2.0.so*
  54. elif [ "$CARCH" = "x86_64" ]; then
  55.     cp -aiv pango-install/usr/lib/libpangoft2-1.0.so* Kokua_64_${_pkgver}_$CARCH/lib64/
  56.     rm -v Kokua_64_${_pkgver}_$CARCH/lib64/libgdk_pixbuf-2.0.so*
  57. fi
  58.  
  59. cd $srcdir
  60.  
  61. # Rename Data Directory
  62. if [ "$CARCH" = "i686" ]; then
  63. mv Kokua_${_pkgver}_$CARCH kokua-secondlife
  64. elif [ "$CARCH" = "x86_64" ]; then
  65. mv Kokua_64_${_pkgver}_$CARCH kokua-secondlife
  66. fi
  67.  
  68. # Install Desktop File
  69. install -D -m644 $srcdir/kokua-secondlife.desktop \
  70.   $pkgdir/usr/share/applications/kokua-secondlife.desktop
  71.  
  72. # Install Icon File
  73. install -D -m644 $srcdir/kokua-secondlife/kokua_icon.png \
  74.   $pkgdir/usr/share/pixmaps/kokua-secondlife.png
  75.  
  76. # Install Launcher
  77. install -D -m755 $srcdir/kokua-secondlife.launcher \
  78.   $pkgdir/usr/bin/kokua-secondlife
  79.  
  80. # Move Data to Destination Directory
  81. install -d $pkgdir/opt
  82. mv kokua-secondlife $pkgdir/opt/
  83.  
  84. # Change Permissions of files to root:games
  85. chown -R root:games $pkgdir/opt/kokua-secondlife
  86. chmod -R g+rw $pkgdir/opt/kokua-secondlife
  87.  
  88. # Make Binary Group-Executable
  89. chmod g+x $pkgdir/opt/kokua-secondlife/kokua
  90.  
  91. # Do not re-register the application with the desktop system at every launch, saves from locally installed desktop files.
  92. sed -i 's|./etc/refresh_desktop_app_entry.sh|#./etc/refresh_desktop_app_entry.sh|' $pkgdir/opt/kokua-secondlife/kokua
  93.    
  94. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top