Created
February 18, 2016 21:46
-
-
Save tarkin88/71028c7d7b096a2b3f3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Ashley Whetter <(firstname) @ awhetter.co.uk> | |
# Contributor: Eothred <yngve.levinsen@gmail.com> | |
pkgname=spotify | |
pkgver=1.0.23.93 | |
_anotherpkgver=.gd6cfae15-30 | |
pkgrel=3 | |
pkgdesc="A proprietary music streaming service" | |
arch=('x86_64' 'i686') | |
license=('custom:"Copyright (c) 2006-2010 Spotify Ltd"') | |
url="http://www.spotify.com" | |
options=('!strip' '!upx') | |
source=('spotify' | |
'spotify.protocol') | |
md5sums=('3f843269e92d536cefdd2f68df11f248' | |
'ef25ddc5b6bf8fe1a0d64cbd79e1f7b4') | |
source_x86_64=("http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${pkgver}${_anotherpkgver}_amd64.deb") | |
md5sums_x86_64=('0ed02db6c7c35a83ac73055865b4b350') | |
source_i686=("http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${pkgver}${_anotherpkgver}_i386.deb") | |
md5sums_i686=('fff46b31c56fd283c654166afb232728') | |
depends=("alsa-lib>=1.0.14" "gconf" "gtk2" "glib2" "nss" "libsystemd" "libxtst" "libx11" "libxss" "libcurl-compat" "desktop-file-utils" "rtmpdump") | |
optdepends=('ffmpeg-compat: Adds support for playback of local files' | |
'zenity: Adds support for importing local files' | |
) | |
install=spotify.install | |
package() { | |
cd "${srcdir}" | |
tar -xzf data.tar.gz -C "${pkgdir}" | |
install -d "${pkgdir}"/usr/share/applications | |
install -d "${pkgdir}"/usr/share/pixmaps | |
install "${pkgdir}"/usr/share/spotify/spotify.desktop "${pkgdir}"/usr/share/applications/spotify.desktop | |
install "${pkgdir}"/usr/share/spotify/icons/spotify-linux-512.png "${pkgdir}"/usr/share/pixmaps/spotify-client.png | |
chmod -R o-w "${pkgdir}"/usr/share/spotify | |
# Bin Script | |
rm "${pkgdir}"/usr/bin/spotify | |
install -Dm755 "${srcdir}/spotify" "${pkgdir}/usr/bin/spotify" | |
# Copy protocol file if KDE is installed | |
if [ -f /usr/bin/startkde ]; then | |
echo "Installing with KDE support" | |
install -Dm644 "${srcdir}/spotify.protocol" "${pkgdir}/usr/share/kde4/services/spotify.protocol" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment