arcolinux

Spotify update 01/04/2018

Apr 1st, 2018
906
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. # Maintainer: Ashley Whetter <(firstname) @ awhetter.co.uk>
  2. # Contributor: Eothred <yngve.levinsen@gmail.com>
  3.  
  4. pkgname=spotify
  5. pkgver=1.0.77.338
  6. _i386_pkgver=1.0.72.117
  7. _anotherpkgver=.g758ebd78
  8. _i386_anotherpkgver=.g6bd7cc73
  9. _amd64_pkgrel=41
  10. _i386_pkgrel=35
  11. pkgrel=2
  12. pkgdesc="A proprietary music streaming service"
  13. arch=('x86_64' 'i686')
  14. license=('custom:"Copyright (c) 2006-2010 Spotify Ltd"')
  15. url="http://www.spotify.com"
  16. options=('!strip' '!upx')
  17.  
  18. source=('spotify'
  19. 'spotify.protocol'
  20. 'LICENSE')
  21. sha256sums=('989920e9360cadc1a8103b8c04acf0c87cb7911eb9a09dddb0cf4708d6249d34'
  22. 'af54f3b90cac46fa100b3f919a9225d10d847617d24aa9af3d832e7689f482c3'
  23. '4e8bea31ca27e16cac9c9dcd8f6ec27e1f82b45de86d6fee7a1e77e23f884b92')
  24. sha256sums_x86_64=('0698d2dbda43f2866d2a6f6ed9816bf8022aa8cf67d0dba347f486410093e1a4')
  25. sha256sums_i686=('f5ac29e8374901ce7401825d13471c03bcf6ec8106f8c210c710b0a8d7b22ca9')
  26.  
  27. source_x86_64=("http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${pkgver}${_anotherpkgver}-${_amd64_pkgrel}_amd64.deb")
  28.  
  29. source_i686=("http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${_i386_pkgver}${_i386_anotherpkgver}-${_i386_pkgrel}_i386.deb")
  30.  
  31. depends=("alsa-lib>=1.0.14" "gconf" "gtk2" "glib2" "nss" "libsystemd" "libxtst" "libx11" "libxss" "openssl-1.0" "desktop-file-utils" "rtmpdump")
  32. depends_x86_64=('libcurl-gnutls')
  33. depends_i686=('libcurl-compat')
  34. optdepends=('ffmpeg-compat-54: Adds support for playback of local files'
  35. 'zenity: Adds support for importing local files'
  36. 'libnotify: Desktop notifications'
  37. )
  38.  
  39. package() {
  40. cd "${srcdir}"
  41.  
  42. tar -xzf data.tar.gz -C "${pkgdir}"
  43.  
  44. install -D "${pkgdir}"/usr/share/spotify/spotify.desktop "${pkgdir}"/usr/share/applications/spotify.desktop
  45. install -D "${pkgdir}"/usr/share/spotify/icons/spotify-linux-512.png "${pkgdir}"/usr/share/pixmaps/spotify-client.png
  46.  
  47. for size in 22 24 32 48 64 128 256 512; do
  48. install -D "${pkgdir}/usr/share/spotify/icons/spotify-linux-$size.png" \
  49. "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/spotify.png"
  50. done
  51.  
  52. chmod -R go-w "${pkgdir}"/usr
  53.  
  54. # Bin Script
  55. rm "${pkgdir}"/usr/bin/spotify
  56. install -Dm755 "${srcdir}/spotify" "${pkgdir}/usr/bin/spotify"
  57.  
  58. # Copy protocol file for KDE
  59. install -Dm644 "${srcdir}/spotify.protocol" "${pkgdir}/usr/share/kservices5/spotify.protocol"
  60.  
  61. # License
  62. install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  63. }
Add Comment
Please, Sign In to add comment