mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
media-sound/spotify-adblock: create the binary in T
Closes: https://bugs.gentoo.org/833956 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Nicola Smaniotto <smaniotto.nicola@gmail.com>
This commit is contained in:
@@ -44,13 +44,13 @@ RDEPEND="
|
||||
src_install(){
|
||||
# executable
|
||||
SPOTIFY_HOME=/opt/spotify/spotify-client
|
||||
cat <<-EOF >"${ED}"/usr/bin/spotify-adblock || die
|
||||
cat <<-EOF > "${T}/spotify-adblock" || die
|
||||
#! /bin/sh
|
||||
LD_LIBRARY_PATH="${SPOTIFY_HOME}" \\
|
||||
LD_PRELOAD=/usr/$(get_libdir)/spotify-adblock.so \\
|
||||
exec ${SPOTIFY_HOME}/spotify "\$@"
|
||||
EOF
|
||||
fperms +x /usr/bin/spotify-adblock
|
||||
dobin "${T}/spotify-adblock"
|
||||
|
||||
# library
|
||||
newlib.so target/release/libspotifyadblock.so ${PN}.so
|
||||
|
||||
Reference in New Issue
Block a user