pkgname=spotify pkgver=0.4.6 pkgrel=1 pkgdesc="A lot of our developers are using Linux, obviously they want to listen to music while they’re coding away and looking at the feedback we get it appears that they’re not the only ones. So today we’re pretty happy to present a preview version of Spotify for Linux. Built by our brilliant developers during hack days and late nights, it shares most of the same features as our Windows and Mac OS X desktop applications. Unfortunately, there are issues regarding decoding of local music on the Linux platform so we haven’t included support for local files in this version. As a preview release this version is still unsupported, but we’re running it ourselves and will try to make sure it keeps pace with its Mac and Windows siblings. As we haven’t found a reliable way to display ads yet, this version is only available to Spotify Premium subscribers." makedepends=('deb2targz' 'tar') # optdepends=('') arch=('x86_64' 'i686') license=('Copyright (c) 2006-2010 Spotify Ltd') url="http://www.spotify.com" if [ "${CARCH}" = "x86_64" ]; then md5sums=('6204ff3d8c1c3748f1618a4b3ed6e91f') _carch=amd64 _pkgver=.50.g0aa5286-1 elif [ "${CARCH}" = "i686" ]; then md5sums=('3fd488b724898ceaa9499b82168f4630') _carch=i386 fi _asoundver=1.0.14 _cver=2.6 _qtver=4.5.0 depends=("alsa-lib>=${_asoundver}" "glibc>=${_cver}" "qt>=${_qtver}" "pulseaudio") source=( ${pkgname}-${pkgver}-${CARCH}.deb::"http://repository.spotify.com/pool/non-free/s/${pkgname}/${pkgname}-client-qt_${pkgver}${_pkgver}_${_carch}.deb" ) build() { install -d ${pkgdir}/usr/share/licenses/${pkgname} pwd deb2targz ${pkgname}-${pkgver}-${CARCH}.deb > /dev/null tar -xzf ${pkgname}-${pkgver}-${CARCH}.tar.gz cp -r usr/ ${pkgdir}/ install -D -m644 usr/share/doc/${pkgname}-client-qt/copyright ${pkgdir}/usr/share/licenses/${pkgname}/ }