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

PKGBUILD_for_Spotify_libssl_linking

By: tpavlic on Oct 25th, 2011  |  syntax: Bash  |  size: 2.57 KB  |  views: 47  |  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: Gadget3000 <gadget3000@msn.com>
  2. # Contributor: Eothred <yngve.levinsen@gmail.com>
  3.  
  4. pkgname=spotify
  5. pkgver=0.6.2.291
  6. _anotherpkgver=.gcccc1f5.116-1
  7. pkgrel=2
  8. pkgdesc="A proprietary peer-to-peer music streaming service"
  9. makedepends=('deb2targz' 'tar')
  10. arch=('x86_64' 'i686')
  11. license=('custom:"Copyright (c) 2006-2010 Spotify Ltd"')
  12. url="http://www.spotify.com"
  13. changelog='spotify.changelog'
  14.  
  15. #Spotify changelog is installed to /usr/share/doc/spotify-client-qt/
  16.  
  17. if [ "${CARCH}" = "x86_64" ]; then
  18.   md5sums=('9772c75591d0214186bcbfad792214eb'
  19.            'e7254fd65743703b361723f1ae9d3425'
  20.            'b30c062c7cfc15567f29629e0f9fabdb'
  21.            'ef25ddc5b6bf8fe1a0d64cbd79e1f7b4')
  22.   _carch=_amd64
  23. elif [ "${CARCH}" = "i686" ]; then
  24.   md5sums=('c8f7b713b4200edfe0bb63be128d3aab'
  25.            'e7254fd65743703b361723f1ae9d3425'
  26.            'b30c062c7cfc15567f29629e0f9fabdb'
  27.            'ef25ddc5b6bf8fe1a0d64cbd79e1f7b4')
  28.   _carch=_i386
  29. fi
  30.  
  31. depends=("alsa-lib>=1.0.14" "glibc>=2.6" "qt>=4.5.0" "libxss" "openssl")
  32. source=("http://repository.spotify.com/pool/non-free/s/${pkgname}/${pkgname}-client-qt_${pkgver}${_anotherpkgver}${_carch}.deb"
  33.         'spotify.desktop'
  34.         'spotify.png'
  35.         'spotify.protocol')
  36.  
  37. build() {
  38.   pwd
  39.   deb2targz ${pkgname}-client-qt_${pkgver}${_anotherpkgver}${_carch}.deb > /dev/null || return 1
  40. #  tar -xzf ${pkgname}-client-qt_${pkgver}${_anotherpkgver}${_carch}.tar.gz -C ${pkgdir} || return 1
  41.  
  42. }
  43.  
  44. package() {
  45.  
  46. tar -xzf ${pkgname}-client-qt_${pkgver}${_anotherpkgver}${_carch}.tar.gz -C ${pkgdir} || return 1
  47.  
  48. #Copy license
  49.   install -d ${pkgdir}/usr/share/licenses/${pkgname}
  50.   install -D -m644 ${pkgdir}/usr/share/doc/${pkgname}-client-qt/copyright \
  51.           ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
  52.  
  53. #Copy icon
  54.   install -d ${pkgdir}/usr/share/pixmaps/
  55.   install -D -m644 ${srcdir}/spotify.png ${pkgdir}/usr/share/pixmaps/ || return 1
  56.  
  57. #Copy desktop file
  58.   install -d ${pkgdir}/usr/share/applications/
  59.   install -D -m644 ${srcdir}/spotify.desktop ${pkgdir}/usr/share/applications/ || return 1
  60.  
  61. #Copy protocol file if KDE is installed
  62. if [ -f /usr/bin/startkde ]; then
  63.   echo "Installing with KDE support"
  64.   install -d ${pkgdir}/usr/share/kde4/services/
  65.   install -D -m644 ${srcdir}/spotify.protocol ${pkgdir}/usr/share/kde4/services/ || return 1
  66. fi
  67.  
  68. #Link ssl 0.9.8 libraries to most up to date openssl
  69. if [ -z "$(pacman -Qs openssl | grep 0.9.8)" ]; then
  70.   install -d ${pkgdir}/usr/lib
  71.   ln -s /usr/lib/libssl.so ${pkgdir}/usr/lib/libssl.so.0.9.8
  72.   ln -s /usr/lib/libcrypto.so ${pkgdir}/usr/lib/libcrypto.so.0.9.8
  73. fi
  74. }
  75.  
  76.  
clone this paste RAW Paste Data