gnopaste

Name
Anonymous
Scriptlanguage
Plain Text
Tabwidth
4
Date
04/06/2013 02:39:29 pm
IP
2001:6f8:114e::40

The user was too lazy to give a description

  1. # Maintainer: Gadget3000 <gadget3000@msn.com>
  2. # Contributor: Eothred <yngve.levinsen@gmail.com>
  3.  
  4. pkgname=spotify
  5. pkgver=0.8.8.323
  6. _anotherpkgver=.gd143501.250-1
  7. pkgrel=2
  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=('2b7c240a742a45a873b6208f7160b3e0'
  19.           '37ef199620c3257d1a3e3fb304f4d9b9'
  20.           '074fb11422f8947b2afa769d3be68bea')
  21.   _carch=_amd64
  22.   libarch=x86_64-linux-gnu
  23. elif [ "${CARCH}" = "i686" ]; then
  24.   md5sums=('c2f61cd9e2496c06af471bbc1d071f42'
  25.           'e2cc39229a453fb3da9662dcb87a2ad4'
  26.           '5cf4795648486c846946ba8fc0a879f6')
  27.   _carch=_i386
  28.   libarch=i386-linux-gnu
  29. fi
  30.  
  31. md5sums+=('eba2c71c7814e9ab1488284b04ca93ec'
  32.           'ef25ddc5b6bf8fe1a0d64cbd79e1f7b4')
  33.  
  34. depends=("alsa-lib>=1.0.14" "glibc>=2.6" "libxss" "qtwebkit" "gconf" "libpng12")
  35. optdepends=('desktop-file-utils: Adds URI support to compatible desktop environments'
  36.             'ffmpeg-spotify: Adds playback support for local files')
  37. source=("http://repository.spotify.com/pool/non-free/s/${pkgname}/${pkgname}-client_${pkgver}${_anotherpkgver}${_carch}.deb"
  38.         "http://mirrors.us.kernel.org/ubuntu/pool/main/n/nspr/libnspr4_4.8.7-0ubuntu3${_carch}.deb"
  39.         "http://mirrors.us.kernel.org/ubuntu/pool/main/o/openssl/libssl0.9.8_0.9.8g-4ubuntu3.20${_carch}.deb"
  40.         'spotify'
  41.         'spotify.protocol')
  42.  
  43. build() {
  44.   cd "${srcdir}"
  45.  
  46.   # libnspr4 - ubuntu oneiric
  47.   install -d "${srcdir}/libnspr4"
  48.   ar x "${srcdir}/libnspr4_4.8.7-0ubuntu3${_carch}.deb" > /dev/null
  49.   tar -xzf data.tar.gz -C "${srcdir}/libnspr4"
  50.  
  51.   # libssl0.9.8 - ubuntu hardy
  52.   install -d "${srcdir}/libssl"
  53.   ar x "${srcdir}/libssl0.9.8_0.9.8g-4ubuntu3.20${_carch}.deb" > /dev/null
  54.   tar -xzf data.tar.gz -C "${srcdir}/libssl"
  55. }
  56.  
  57. package() {
  58.   cd "${srcdir}"
  59.  
  60.   ar x "${pkgname}-client_${pkgver}${_anotherpkgver}${_carch}.deb" > /dev/null
  61.   tar -xzf data.tar.gz -C "${pkgdir}"
  62.  
  63.   # Bin Script
  64.   install -Dm755 "${srcdir}/spotify" "${pkgdir}/usr/bin/spotify"
  65.  
  66.   # libnspr4.so
  67.   install -Dm644 "${srcdir}/libnspr4/usr/lib/${libarch}/libnspr4.so"
  68.     "${pkgdir}/opt/spotify/libs/libnspr4.so"
  69.   ln -s ./libnspr4.so "${pkgdir}/opt/spotify/libs/libnspr4.so.0d"
  70.  
  71.   # libplc4.so
  72.   install -Dm644 "${srcdir}/libnspr4/usr/lib/${libarch}/libplc4.so"
  73.     "${pkgdir}/opt/spotify/libs/libplc4.so"
  74.   ln -s ./libplc4.so "${pkgdir}/opt/spotify/libs/libplc4.so.0d"
  75.  
  76.   # libnss3.so
  77.   ln -s /usr/lib/libnss3.so "${pkgdir}/opt/spotify/libs/libnss3.so.1d"
  78.  
  79.   # libnssutil3.so
  80.   ln -s /usr/lib/libnssutil3.so "${pkgdir}/opt/spotify/libs/libnssutil3.so.1d"
  81.  
  82.   # libsmime3.so
  83.   ln -s /usr/lib/libsmime3.so "${pkgdir}/opt/spotify/libs/libsmime3.so.1d"
  84.  
  85.   # libssl
  86.   install -Dm644 "${srcdir}/libssl/usr/lib/libcrypto.so.0.9.8"
  87.     "${pkgdir}/opt/spotify/libs/libcrypto.so.0.9.8"
  88.   install -Dm644 "${srcdir}/libssl/usr/lib/libssl.so.0.9.8"
  89.     "${pkgdir}/opt/spotify/libs/libssl.so.0.9.8"
  90.  
  91.   # Copy license
  92.   install -Dm644 "${pkgdir}/usr/share/doc/${pkgname}-client/copyright"
  93.     "${pkgdir}/usr/share/licenses/${pkgname}/copyright"
  94.  
  95.   # Copy protocol file if KDE is installed
  96.   if [ -f /usr/bin/startkde ]; then
  97.     echo "Installing with KDE support"
  98.     install -Dm644 "${srcdir}/spotify.protocol" "${pkgdir}/usr/share/kde4/services/spotify.protocol"
  99.   fi
  100. }
submitter » gnopaster | imprint « imprint     
» Terms of use «