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

PKGBUILD_spotify_0_9_0_133

By: a guest on May 2nd, 2013  |  syntax: Bash  |  size: 2.39 KB  |  views: 226  |  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.9.0.133
  6. _anotherpkgver=.gd18ed58.259-1
  7. pkgrel=4
  8. pkgdesc="A proprietary peer-to-peer music streaming service"
  9. arch=('x86_64' 'i686')
  10. license=('custom:"Copyright (c) 2006-2013 Spotify Ltd"')
  11. install=spotify.install
  12. url="http://www.spotify.com"
  13. changelog='spotify.changelog'
  14. options=('!strip')
  15. conflicts=('spotify-beta')
  16.  
  17. if [ "${CARCH}" = "x86_64" ]; then
  18.   md5sums=('2f1596a85ebb63e3590b88530b745078')
  19.   _carch=_amd64
  20. elif [ "${CARCH}" = "i686" ]; then
  21.   md5sums=('52d3bf6176a5060e41fb497b3efddd13')
  22.   _carch=_i386
  23. fi
  24.  
  25. md5sums+=('53702d38b8bb0e1a7738805449214b54'
  26. 'ef25ddc5b6bf8fe1a0d64cbd79e1f7b4')
  27.  
  28. depends=("alsa-lib>=1.0.14" "glibc>=2.6" "libxss" "qtwebkit" "gconf" "nspr>=4.0" "nspr<5.0")
  29. optdepends=('desktop-file-utils: Adds URI support to compatible desktop environments'
  30. 'ffmpeg-spotify: Adds playback support for local files')
  31. source=("http://repository.spotify.com/pool/non-free/s/${pkgname}/${pkgname}-client_${pkgver}${_anotherpkgver}${_carch}.deb"
  32. 'spotify'
  33. 'spotify.protocol')
  34.  
  35. package() {
  36.   cd "${srcdir}"
  37.  
  38.   ar x "${pkgname}-client_${pkgver}${_anotherpkgver}${_carch}.deb" > /dev/null
  39.   tar -xzf data.tar.gz -C "${pkgdir}"
  40.  
  41.   install -d "${pkgdir}/opt/spotify/libs/"
  42.  
  43.   # Bin Script
  44.   install -Dm755 "${srcdir}/spotify" "${pkgdir}/usr/bin/spotify"
  45.  
  46.   # libplc4.so
  47.   ln -s /usr/lib/libplc4.so "${pkgdir}/opt/spotify/libs/libplc4.so.0d"
  48.  
  49.   # libnspr4.so
  50.   ln -s /usr/lib/libnspr4.so "${pkgdir}/opt/spotify/libs/libnspr4.so.0d"
  51.  
  52.   # libnss3.so
  53.   ln -s /usr/lib/libnss3.so "${pkgdir}/opt/spotify/libs/libnss3.so.1d"
  54.  
  55.   # libnssutil3.so
  56.   ln -s /usr/lib/libnssutil3.so "${pkgdir}/opt/spotify/libs/libnssutil3.so.1d"
  57.  
  58.   # libsmime3.so
  59.   ln -s /usr/lib/libsmime3.so "${pkgdir}/opt/spotify/libs/libsmime3.so.1d"
  60.  
  61.   # libssl
  62.   ln -s /usr/lib/libcrypto.so "${pkgdir}/opt/spotify/libs/libcrypto.so.0.9.8"
  63.   ln -s /usr/lib/libssl.so "${pkgdir}/opt/spotify/libs/libssl.so.0.9.8"
  64.  
  65.   # Copy license
  66.   install -Dm644 "${pkgdir}/usr/share/doc/${pkgname}-client/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/copyright"
  67.  
  68.   # Copy protocol file if KDE is installed
  69.   if [ -f /usr/bin/startkde ]; then
  70.     echo "Installing with KDE support"
  71.     install -Dm644 "${srcdir}/spotify.protocol" "${pkgdir}/usr/share/kde4/services/spotify.protocol"
  72.   fi
  73. }