diff options
author | 2013-01-07 22:17:01 -0600 | |
---|---|---|
committer | 2013-01-07 22:17:01 -0600 | |
commit | a64854fda55034623643d7dd72865b4fc3a98686 (patch) | |
tree | ea8a22969d10a6df290be7fad09d49ba739928bd | |
parent | should be final for spotify-0.8.8.323 (diff) | |
download | prometheanfire-a64854fda55034623643d7dd72865b4fc3a98686.tar.gz prometheanfire-a64854fda55034623643d7dd72865b4fc3a98686.tar.bz2 prometheanfire-a64854fda55034623643d7dd72865b4fc3a98686.zip |
in tree
-rw-r--r-- | media-sound/spotify/ChangeLog | 28 | ||||
-rw-r--r-- | media-sound/spotify/Manifest | 9 | ||||
-rw-r--r-- | media-sound/spotify/metadata.xml | 14 | ||||
-rw-r--r-- | media-sound/spotify/spotify-0.8.4.103-r2.ebuild | 141 | ||||
-rw-r--r-- | media-sound/spotify/spotify-0.8.4.103-r3.ebuild | 142 | ||||
-rw-r--r-- | media-sound/spotify/spotify-0.8.8.323.ebuild | 147 |
6 files changed, 0 insertions, 481 deletions
diff --git a/media-sound/spotify/ChangeLog b/media-sound/spotify/ChangeLog deleted file mode 100644 index 2c0ee10..0000000 --- a/media-sound/spotify/ChangeLog +++ /dev/null @@ -1,28 +0,0 @@ -# ChangeLog for media-sound/spotify -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/ChangeLog,v 1.4 2012/12/17 15:18:25 prometheanfire Exp $ - -*spotify-0.8.4.103-r3 (17 Dec 2012) - - 17 Dec 2012; Matthew Thode <prometheanfire@gentoo.org> - +spotify-0.8.4.103-r3.ebuild, -spotify-0.8.4.103-r1.ebuild, - -spotify-0.8.4.103.ebuild: - add the cups rdep to spotify, becuse, whynot - -*spotify-0.8.4.103-r2 (16 Nov 2012) - - 16 Nov 2012; Matthew Thode <prometheanfire@gentoo.org> - +spotify-0.8.4.103-r2.ebuild: - removing kde badness bug #442682 - -*spotify-0.8.4.103-r1 (11 Nov 2012) - - 11 Nov 2012; Matthew Thode <prometheanfire@gentoo.org> - +spotify-0.8.4.103-r1.ebuild: - spotify-0.8.4.103-r1 for bug 442682 - -*spotify-0.8.4.103 (07 Nov 2012) - - 07 Nov 2012; Matthew Thode <prometheanfire@gentoo.org> - +spotify-0.8.4.103.ebuild: - adding spotify-0.8.4.103 for bug 373093 diff --git a/media-sound/spotify/Manifest b/media-sound/spotify/Manifest deleted file mode 100644 index ad17365..0000000 --- a/media-sound/spotify/Manifest +++ /dev/null @@ -1,9 +0,0 @@ -DIST spotify-client_0.8.4.103.g9cb177b.260-1_amd64.deb 31702600 SHA256 d350defa4164aaf129985df7e3ca33fc3f88aad2fac1637e6a26cc1794f3b378 SHA512 0f07ff8e2844d3f2626fa02351474a76b0d7178dd94d4d857ff2a0b6d28f887980889e4bc57fab18ab2a0cb6d7771e90bb7a20c2427ab69e2195f5de47ae3622 WHIRLPOOL 7d8a24fdbd9a12e92443264bcb01f27a322028c2074b40cb26e8f0e06195175ae8f369da41cde5d8dbe741792ad3250dc408addf9ceee594f2782a45772817f7 -DIST spotify-client_0.8.4.103.g9cb177b.260-1_i386.deb 28110850 SHA256 61502995da6b126eb6801bf92a8463a7fdd37dc6be0e0aba3560bdadde3531c7 SHA512 b48c70267781dc4b6d5afeee8061a95266de59ae02d252b054cd3a63a8bdcb19a461e7c28095d3884f7e7ff1129778ab7549dda9b891dc107f54182e13725dc2 WHIRLPOOL 0c443030bad393721c964c36561b84eb1388248a47d0dcc2f14541f5a33de4364a2de081e69c8c379e3a4ef529209b76d1f2e14fdaef68631471b414e01ba239 -DIST spotify-client_0.8.8.323.gd143501.250-1_amd64.deb 35097658 SHA256 0ebedb3411bdd4e71c9a6aa78f5218a37d70996904e3d1326c414f9e12f9c35b SHA512 13b8fdb8533fb3fdff700aca369154d48045fc70c51c3f08e2d39762eec6ffa5987e582795c2449df3dc8771dedef622915446fb47047b6daa403d424055d87b WHIRLPOOL da5cd70ad44f7d2bcd1a9c92316a499af72184fb9833759b1960cbfabf56b89c095d94d1b1b4551fc9fa0995fdd60edde45f9bccf14959c2d75aaee89ae52256 -DIST spotify-client_0.8.8.323.gd143501.250-1_i386.deb 30905262 SHA256 0624959151fe8a58d82b2b7bcdee44ab615cd3fdb1247772f626e04df100088f SHA512 6f01153f78c95cf86acdb15e2851d4779b22dc5ef15dd394287d7ed3aa51aedb80a31b388e1fae760f90c607d48f1369b732ca49710bd5a6673d5d9160b26eba WHIRLPOOL d62d9fc6b565f02230a23974b0a8920ff2a2caee6afccce7a2adad5cecb823ef8ec7bcfc49a05a8557a4fa3062ba67315fc2edf1cf075a0c2d05eb94bc150b1d -EBUILD spotify-0.8.4.103-r2.ebuild 4041 SHA256 7db6611dd4a792a8864cdfb3b4253992fb6744eb86ff79e8ef95beab1179e518 SHA512 63b971805ce2616eb3d8d161bed339841e4fd5558977d21f835041080299f418b758f694da46ef75e3db78c437839fe0824087ea1b42649d659a80689f01ba9f WHIRLPOOL 204159303f628c4943cd4decf2e0a0611d461ae38d1b5afbfbc5f9cc0cc538fa50356b2ca3ed6433cc8b423655edd71f9b51abc1c9f9d08a860195e201c7fca4 -EBUILD spotify-0.8.4.103-r3.ebuild 4058 SHA256 d796dbf4449f399711b092b1c9ae6316eb996edaa7c3a2791920b2c91a023521 SHA512 7505d558823344e3a0af116abfa918cb1168a44dfd3581ab2af6503d9a20ada306e8fe47a01284a4bd73dc5d68faf365c6e766b27ecb1b86c7d5a54bf05ef08c WHIRLPOOL f4e3fa48c0ea714fb6c9361328c48cafc7aae8f539d2731de53e16131a36943824290f9d2e3416054de8dce608d5f4121bbe711faf1ed9787b1f8eebe8d63859 -EBUILD spotify-0.8.8.323.ebuild 4238 SHA256 9f408340b74ce22fd9fd5a126ecad6922780b68e04b9fe52f9d0bb9b808b3ad4 SHA512 765de5662213394a0eec2f9e1637b7c17d31f7081c98a833e53e3637e27055b8a5bcd4506e7ae1ce7ea7882661f0e93183f56c24602ff36216eabe134ace7ed0 WHIRLPOOL 2f51ffbbe4dc6906f42abde30fb7306465138035d27cd9c97fb447d73d28c4f838034accacb0678cf9a02ed374f5ee6735368bd7d762adf91f48900e2500ab18 -MISC ChangeLog 941 SHA256 0377ceb78a51b1bb11998977025ba9c4e42dde624826f11fe0257a8dc9ed8f5b SHA512 9f6f8c39f263533a7590f30c23afd3f867cf667ca7c3ed15df99f38cba12bbf2427fd773447a5dca2324b5ad43e8699aa234353b43679f3f46a552a8148a434b WHIRLPOOL b4e1bd237bb029b37e709b0c83e0146bfd0074ff00dd992b59b19a364f0d7e8497ebc19042056f1e23e591b7a5a84801e2b52103b74b5d369622bb01126485fd -MISC metadata.xml 383 SHA256 2b8b3f4b10decd35022fb1973384e6d8ac74c439bcd104263651faada927b728 SHA512 b7be1a1ea17efea5c3d01d812a79e8c84137219c36d9a4ce511f473d99102953df615ce119e5d993253cf1ec65967a2df06f8e23eb2bfb2debe1e03049ffed29 WHIRLPOOL 431d2deed63c25a74019050e19618a1e1d5482b81c03f9d14cc8b01218cb96ca1bc703a94ecaa54a487c02608e6b0ac7080082a4f30ae49b3e8f22a3a81a3fea diff --git a/media-sound/spotify/metadata.xml b/media-sound/spotify/metadata.xml deleted file mode 100644 index 2829164..0000000 --- a/media-sound/spotify/metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <use> - <flag name="pax_kernel">Triggers a paxmarking of the main Spotify binary</flag> - </use> -<maintainer> -<email>prometheanfire@gentoo.org</email> -<name>Matthew Thode</name> -</maintainer> -<longdescription lang="en"> -</longdescription> -</pkgmetadata> - diff --git a/media-sound/spotify/spotify-0.8.4.103-r2.ebuild b/media-sound/spotify/spotify-0.8.4.103-r2.ebuild deleted file mode 100644 index ecfb8f3..0000000 --- a/media-sound/spotify/spotify-0.8.4.103-r2.ebuild +++ /dev/null @@ -1,141 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/spotify-0.8.4.103-r2.ebuild,v 1.1 2012/11/16 05:13:07 prometheanfire Exp $ - -EAPI=4 -inherit pax-utils - -DESCRIPTION="Spotify is a social music platform" -HOMEPAGE="https://www.spotify.com/ch-de/download/previews/" -MY_PV="${PV}.g9cb177b.260-1" -MY_P="${PN}-client_${MY_PV}" -SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}/" -#SRC_BASE="http://download.spotify.com/preview/" -SRC_URI=" - x86? ( ${SRC_BASE}${MY_P}_i386.deb ) - amd64? ( ${SRC_BASE}${MY_P}_amd64.deb ) - " -LICENSE="Spotify" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="gnome pax_kernel pulseaudio" - -DEPEND="" -RDEPEND="${DEPEND} - x11-libs/libX11 - x11-libs/libSM - x11-libs/libICE - x11-libs/libXrender - x11-libs/libXrandr - x11-libs/libXinerama - x11-libs/libXext - x11-libs/libxcb - x11-libs/libXau - x11-libs/libXdmcp - x11-libs/qt-core:4 - x11-libs/qt-gui:4 - x11-libs/qt-webkit:4 - x11-libs/qt-dbus:4 - x11-libs/libXScrnSaver - media-libs/freetype - media-libs/fontconfig - media-libs/alsa-lib - dev-libs/openssl:0 - dev-libs/glib:2 - media-libs/libpng:1.2 - dev-db/sqlite:3 - sys-libs/zlib - app-arch/bzip2 - sys-apps/dbus - sys-apps/util-linux - dev-libs/expat - >=dev-libs/nspr-4.9 - gnome-base/gconf:2 - x11-libs/gtk+:2 - dev-libs/nss - dev-libs/glib:2 - pulseaudio? ( >=media-sound/pulseaudio-0.9.21 ) - gnome? ( gnome-extra/gnome-integration-spotify )" - -RESTRICT="mirror strip" - -src_unpack() { - mkdir "${P}" - cd "${P}" - unpack ${A} - unpack ./data.tar.gz -} - -src_prepare() { - # link against openssl-1.0.0 as it crashes with 0.9.8 - sed -i \ - -e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \ - usr/share/spotify/spotify || die "sed failed" - # different NSPR / NSS library names for some reason - sed -i \ - -e 's/\(lib\(nss3\|nssutil3\|smime3\).so\).1d/\1.12/g' \ - -e 's/\(lib\(plc4\|nspr4\).so\).0d\(.\)/\1.9\3\3/g' \ - usr/share/spotify/libcef.so || die "sed failed" - # Fix desktop entry to launch spotify-dbus.py for GNOME integration - if use gnome ; then - sed -i \ - -e 's/spotify \%U/spotify-dbus.py \%U/g' \ - usr/share/applications/spotify.desktop || die "sed failed" - fi - #and fix other stuff in the desktop file as well - sed -i \ - -e 's/x-scheme-handler\/spotify$/x-scheme-handler\/spotify\;/g' \ - -e 's/AudioVideo$/AudioVideo\;/g' \ - usr/share/applications/spotify.desktop || die "sed failed" -} - -src_install() { - dodoc usr/share/doc/spotify-client/changelog.Debian.gz - dodoc usr/share/doc/spotify-client/copyright - insinto /usr/share/applications - doins usr/share/applications/*.desktop - insinto /usr/share/pixmaps - doins usr/share/pixmaps/*.png - - # install in /opt/spotify - SPOTIFY_HOME=/opt/spotify - dodir ${SPOTIFY_HOME} - insinto ${SPOTIFY_HOME} - doins -r usr/share/spotify/* - fperms +x ${SPOTIFY_HOME}/spotify - dodir /usr/share - dosym ${SPOTIFY_HOME} /usr/share/spotify - - dodir /usr/bin - cat <<-EOF >"${D}"/usr/bin/spotify - #! /bin/sh - LD_PRELOAD="\${LD_PRELOAD} /usr/share/spotify/libcef.so" - export LD_PRELOAD - exec ${SPOTIFY_HOME}/spotify "\$@" - EOF - fperms +x /usr/bin/spotify - - # revdep-rebuild produces a false positive because of symbol versioning - dodir /etc/revdep-rebuild - cat <<-EOF >"${D}"/etc/revdep-rebuild/10${PN} - SEARCH_DIRS_MASK="${SPOTIFY_HOME}" - EOF - - if use pax_kernel; then - #create the headers, reset them to default, then paxmark -m them - pax-mark C "${ED}"/opt/${PN}/${PN} || die - pax-mark z "${ED}"/opt/${PN}/${PN} || die - pax-mark m "${ED}"/opt/${PN}/${PN} || die - eqawarn "You have set USE=pax_kernel meaning that you intendto run" - eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify" - eqawarn "the ${PN} binary itself and this *may* lead to breakage! If" - eqawarn "you suspect that ${PN} is being broken by this modification," - eqawarn "please open a bug." - fi -} - -pkg_postinst() { - ewarn "If Spotify crashes after an upgrade its cache may be corrupt." - ewarn "To remove the cache:" - ewarn "rm -rf ~/.cache/spotify" -} diff --git a/media-sound/spotify/spotify-0.8.4.103-r3.ebuild b/media-sound/spotify/spotify-0.8.4.103-r3.ebuild deleted file mode 100644 index 1c912ca..0000000 --- a/media-sound/spotify/spotify-0.8.4.103-r3.ebuild +++ /dev/null @@ -1,142 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/spotify-0.8.4.103-r3.ebuild,v 1.1 2012/12/17 15:18:25 prometheanfire Exp $ - -EAPI=4 -inherit pax-utils - -DESCRIPTION="Spotify is a social music platform" -HOMEPAGE="https://www.spotify.com/ch-de/download/previews/" -MY_PV="${PV}.g9cb177b.260-1" -MY_P="${PN}-client_${MY_PV}" -SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}/" -#SRC_BASE="http://download.spotify.com/preview/" -SRC_URI=" - x86? ( ${SRC_BASE}${MY_P}_i386.deb ) - amd64? ( ${SRC_BASE}${MY_P}_amd64.deb ) - " -LICENSE="Spotify" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="gnome pax_kernel pulseaudio" - -DEPEND="" -RDEPEND="${DEPEND} - x11-libs/libX11 - x11-libs/libSM - x11-libs/libICE - x11-libs/libXrender - x11-libs/libXrandr - x11-libs/libXinerama - x11-libs/libXext - x11-libs/libxcb - x11-libs/libXau - x11-libs/libXdmcp - x11-libs/qt-core:4 - x11-libs/qt-gui:4 - x11-libs/qt-webkit:4 - x11-libs/qt-dbus:4 - x11-libs/libXScrnSaver - media-libs/freetype - media-libs/fontconfig - media-libs/alsa-lib - dev-libs/openssl:0 - dev-libs/glib:2 - media-libs/libpng:1.2 - dev-db/sqlite:3 - sys-libs/zlib - app-arch/bzip2 - sys-apps/dbus - sys-apps/util-linux - dev-libs/expat - >=dev-libs/nspr-4.9 - gnome-base/gconf:2 - x11-libs/gtk+:2 - dev-libs/nss - dev-libs/glib:2 - net-print/cups - pulseaudio? ( >=media-sound/pulseaudio-0.9.21 ) - gnome? ( gnome-extra/gnome-integration-spotify )" - -RESTRICT="mirror strip" - -src_unpack() { - mkdir "${P}" - cd "${P}" - unpack ${A} - unpack ./data.tar.gz -} - -src_prepare() { - # link against openssl-1.0.0 as it crashes with 0.9.8 - sed -i \ - -e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \ - usr/share/spotify/spotify || die "sed failed" - # different NSPR / NSS library names for some reason - sed -i \ - -e 's/\(lib\(nss3\|nssutil3\|smime3\).so\).1d/\1.12/g' \ - -e 's/\(lib\(plc4\|nspr4\).so\).0d\(.\)/\1.9\3\3/g' \ - usr/share/spotify/libcef.so || die "sed failed" - # Fix desktop entry to launch spotify-dbus.py for GNOME integration - if use gnome ; then - sed -i \ - -e 's/spotify \%U/spotify-dbus.py \%U/g' \ - usr/share/applications/spotify.desktop || die "sed failed" - fi - #and fix other stuff in the desktop file as well - sed -i \ - -e 's/x-scheme-handler\/spotify$/x-scheme-handler\/spotify\;/g' \ - -e 's/AudioVideo$/AudioVideo\;/g' \ - usr/share/applications/spotify.desktop || die "sed failed" -} - -src_install() { - dodoc usr/share/doc/spotify-client/changelog.Debian.gz - dodoc usr/share/doc/spotify-client/copyright - insinto /usr/share/applications - doins usr/share/applications/*.desktop - insinto /usr/share/pixmaps - doins usr/share/pixmaps/*.png - - # install in /opt/spotify - SPOTIFY_HOME=/opt/spotify - dodir ${SPOTIFY_HOME} - insinto ${SPOTIFY_HOME} - doins -r usr/share/spotify/* - fperms +x ${SPOTIFY_HOME}/spotify - dodir /usr/share - dosym ${SPOTIFY_HOME} /usr/share/spotify - - dodir /usr/bin - cat <<-EOF >"${D}"/usr/bin/spotify - #! /bin/sh - LD_PRELOAD="\${LD_PRELOAD} /usr/share/spotify/libcef.so" - export LD_PRELOAD - exec ${SPOTIFY_HOME}/spotify "\$@" - EOF - fperms +x /usr/bin/spotify - - # revdep-rebuild produces a false positive because of symbol versioning - dodir /etc/revdep-rebuild - cat <<-EOF >"${D}"/etc/revdep-rebuild/10${PN} - SEARCH_DIRS_MASK="${SPOTIFY_HOME}" - EOF - - if use pax_kernel; then - #create the headers, reset them to default, then paxmark -m them - pax-mark C "${ED}"/opt/${PN}/${PN} || die - pax-mark z "${ED}"/opt/${PN}/${PN} || die - pax-mark m "${ED}"/opt/${PN}/${PN} || die - eqawarn "You have set USE=pax_kernel meaning that you intendto run" - eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify" - eqawarn "the ${PN} binary itself and this *may* lead to breakage! If" - eqawarn "you suspect that ${PN} is being broken by this modification," - eqawarn "please open a bug." - fi -} - -pkg_postinst() { - ewarn "If Spotify crashes after an upgrade its cache may be corrupt." - ewarn "To remove the cache:" - ewarn "rm -rf ~/.cache/spotify" -} diff --git a/media-sound/spotify/spotify-0.8.8.323.ebuild b/media-sound/spotify/spotify-0.8.8.323.ebuild deleted file mode 100644 index c19e1c6..0000000 --- a/media-sound/spotify/spotify-0.8.8.323.ebuild +++ /dev/null @@ -1,147 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/spotify/spotify-0.8.4.103-r3.ebuild,v 1.1 2012/12/17 15:18:25 prometheanfire Exp $ - -EAPI=4 -inherit pax-utils - -DESCRIPTION="Spotify is a social music platform" -HOMEPAGE="https://www.spotify.com/ch-de/download/previews/" -MY_PV="${PV}.gd143501.250-1" -MY_P="${PN}-client_${MY_PV}" -SRC_BASE="http://repository.spotify.com/pool/non-free/${PN:0:1}/${PN}/" -#SRC_BASE="http://download.spotify.com/preview/" -SRC_URI=" - x86? ( ${SRC_BASE}${MY_P}_i386.deb ) - amd64? ( ${SRC_BASE}${MY_P}_amd64.deb ) - " -LICENSE="Spotify" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="gnome pax_kernel pulseaudio" - -DEPEND="" -RDEPEND="${DEPEND} - x11-libs/libxcb - x11-libs/libICE - x11-libs/libSM - x11-libs/libX11 - x11-libs/libXau - x11-libs/libXext - x11-libs/libXinerama - x11-libs/libXdmcp - x11-libs/libXScrnSaver - x11-libs/libXrandr - x11-libs/libXrender - x11-libs/qt-core:4 - x11-libs/qt-dbus:4 - x11-libs/qt-gui:4 - x11-libs/qt-webkit:4 - x11-misc/xdg-utils - media-libs/alsa-lib - media-libs/fontconfig - media-libs/freetype - dev-libs/openssl:0 - dev-libs/glib:2 - media-libs/libpng:1.2 - dev-db/sqlite:3 - sys-libs/zlib - app-arch/bzip2 - sys-apps/dbus - sys-apps/util-linux - dev-libs/expat - >=dev-libs/nspr-4.9 - gnome-base/gconf:2 - x11-libs/gtk+:2 - dev-libs/nss - dev-libs/glib:2 - net-print/cups - pulseaudio? ( >=media-sound/pulseaudio-0.9.21 ) - gnome? ( gnome-extra/gnome-integration-spotify )" - -RESTRICT="mirror strip" - -src_unpack() { - mkdir "${P}" - cd "${P}" - unpack ${A} - unpack ./data.tar.gz -} - -src_prepare() { - # link against openssl-1.0.0 as it crashes with 0.9.8 - sed -i \ - -e 's/\(lib\(ssl\|crypto\).so\).0.9.8/\1.1.0.0/g' \ - opt/spotify/spotify-client/spotify || die "sed failed" - # different NSPR / NSS library names for some reason - sed -i \ - -e 's/\(lib\(nss3\|nssutil3\|smime3\).so\).1d/\1.12/g' \ - -e 's/\(lib\(plc4\|nspr4\).so\).0d\(.\)/\1.9\3\3/g' \ - opt/spotify/spotify-client/libcef.so || die "sed failed" - # Fix desktop entry to launch spotify-dbus.py for GNOME integration - if use gnome ; then - sed -i \ - -e 's/spotify \%U/spotify-dbus.py \%U/g' \ - opt/spotify/spotify-client/spotify.desktop || die "sed failed" - fi - #and fix other stuff in the desktop file as well - sed -i \ - -e 's/x-scheme-handler\/spotify$/x-scheme-handler\/spotify\;/g' \ - -e 's/AudioVideo$/AudioVideo\;/g' \ - opt/spotify/spotify-client/spotify.desktop || die "sed failed" -} - -src_install() { - dodoc opt/spotify/spotify-client/changelog - dodoc usr/share/doc/spotify-client/changelog.Debian.gz - dodoc usr/share/doc/spotify-client/copyright - - insinto /usr/share/pixmaps - doins opt/spotify/spotify-client/Icons/*.png - - # install in /opt/spotify - SPOTIFY_HOME=/opt/spotify/spotify-client - insinto ${SPOTIFY_HOME} - doins -r opt/spotify/spotify-client/* - fperms +x ${SPOTIFY_HOME}/spotify - - dodir /usr/bin - cat <<-EOF >"${D}"/usr/bin/spotify - #! /bin/sh - LD_PRELOAD="\${LD_PRELOAD} ${SPOTIFY_HOME}/libcef.so" - export LD_PRELOAD - exec ${SPOTIFY_HOME}/spotify "\$@" - EOF - fperms +x /usr/bin/spotify - - # revdep-rebuild produces a false positive because of symbol versioning - dodir /etc/revdep-rebuild - cat <<-EOF >"${D}"/etc/revdep-rebuild/10${PN} - SEARCH_DIRS_MASK="${SPOTIFY_HOME}" - EOF - - if use pax_kernel; then - #create the headers, reset them to default, then paxmark -m them - pax-mark C "${ED}"/opt/${PN}/spotify-client/${PN} || die - pax-mark z "${ED}"/opt/${PN}/spotify-client/${PN} || die - pax-mark m "${ED}"/opt/${PN}/spotify-client/${PN} || die - eqawarn "You have set USE=pax_kernel meaning that you intendto run" - eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify" - eqawarn "the ${PN} binary itself and this *may* lead to breakage! If" - eqawarn "you suspect that ${PN} is being broken by this modification," - eqawarn "please open a bug." - fi -} - -pkg_postinst() { - #register icons and stuff - sh /opt/spotify/spotify-client/register.sh - ewarn "If Spotify crashes after an upgrade its cache may be corrupt." - ewarn "To remove the cache:" - ewarn "rm -rf ~/.cache/spotify" -} - -pkg_prerm() { - #unregister icons and stuff - sh /opt/spotify/spotify-client/unregister.sh -} |