Tuesday, October 4, 2011

Updated Spotify ebuild (0.6.1.309)

Earlier I posted an ebuild to Spotify (for the package manager in Gentoo called Portage). Here is a newer version of that ebuild. Like the last time, put it in a file called spotify-0.6.1.309.ebuild inside your local repository (like /usr/local/portage/media-sound/spotify/)

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

DESCRIPTION="Spotify desktop client"
HOMEPAGE="http://www.spotify.com/"

LICENSE="Spotify"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gnome"

MY_PV="${PV}.gb871a7d-1"
MY_P="${PN}-client-qt_${MY_PV}"

SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}/"
SRC_URI="
    x86?   ( ${SRC_BASE}${MY_P}_i386.deb )
    amd64? ( ${SRC_BASE}${MY_P}_amd64.deb )
"

RDEPEND="
    gnome? ( >=gnome-base/gconf-2.12 )
    >=sys-libs/glibc-2.6
    >=media-libs/alsa-lib-1.0.14
    >=x11-libs/qt-core-4.5
    >=x11-libs/qt-dbus-4.5
    >=x11-libs/qt-gui-4.5
    >=x11-libs/qt-webkit-4.5
    >=sys-devel/gcc-4.0
    sys-apps/usbutils
    "

RESTRICT="mirror strip"

src_unpack() {
    for MY_A in ${A}; do
        unpack ${MY_A}
        unpack ./data.tar.gz
    done
}

src_install() {
    mv "${WORKDIR}"/usr "${D}" || die "Install failed"
}
Update: Remove gnome-support since Spotify states this is broken and will be removed in the future.
Update2: This ebuild does NOT work on Gentoo (~amd64) right now since there is a dependency on libssl-0.9.8, and we are currently using v1.0. Hopefully this will be solved somehow. I'll remove this update when it is.

1 comment:

Anonymous said...

Hi,

thanks for the ebuild.

There is a small typo : the " of the URI isn't closed (before RDEPEND).

Also, there is now an updated ebuild here : https://bugs.gentoo.org/show_bug.cgi?id=373093

Maybe it would be easier to keep all the related ebuilds there.

Thanks!