46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# Template file for 'spotify'
|
|
pkgname=spotify
|
|
version=1.2.31
|
|
revision=1
|
|
_subver=1205.g4d59ad7c
|
|
archs="x86_64"
|
|
create_wrksrc=yes
|
|
hostmakedepends="libcurl"
|
|
depends="libcurl"
|
|
short_desc="Proprietary music streaming client"
|
|
maintainer="Stefan Mühlinghaus <jazzman@alphabreed.com>"
|
|
license="custom:Proprietary"
|
|
homepage="https://www.spotify.com"
|
|
distfiles="http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${version}.${_subver}_amd64.deb"
|
|
checksum=71b724bd9ec37ccc37b340606bc37f46d47320b5fa429a4c9dce5bd24e07adb8
|
|
repository=nonfree
|
|
restricted=yes
|
|
nostrip=yes
|
|
|
|
do_install() {
|
|
vbin "${FILESDIR}/spotify"
|
|
|
|
vmkdir usr/share/spotify
|
|
vmkdir usr/share/applications
|
|
vmkdir usr/libexec/
|
|
vcopy usr/share/spotify usr/libexec/
|
|
|
|
ln -s "../../libexec/spotify/icons" "${DESTDIR}/usr/share/spotify/"
|
|
|
|
# install icons
|
|
for _s in 16 22 24 32 48 64 128 256 512; do
|
|
vmkdir "usr/share/icons/hicolor/${_s}x${_s}/apps"
|
|
ln -sf "/usr/share/spotify/icons/spotify-linux-${_s}.png" \
|
|
"${DESTDIR}/usr/share/icons/hicolor/${_s}x${_s}/apps/spotify-client.png"
|
|
done
|
|
|
|
vmkdir usr/share/applications
|
|
mv "${DESTDIR}/usr/libexec/spotify/spotify.desktop" \
|
|
"${DESTDIR}/usr/share/applications/spotify.desktop"
|
|
|
|
# provide dynamic libraries
|
|
ln -s /usr/lib/libcurl.so.4 ${DESTDIR}/usr/libexec/spotify/libcurl-gnutls.so.4
|
|
|
|
vlicense ${FILESDIR}/EULA
|
|
}
|