-
-
Save tonylambiris/f1cad3a51965f81d3d335c4f3d81f2d2 to your computer and use it in GitHub Desktop.
PKGBUILD for spotify
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.42.151 | |
_anotherpkgver=.g19de0aa6 | |
pkgrel=1 | |
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=('cfef2f72647980c639201c6ab39e8534' | |
'ef25ddc5b6bf8fe1a0d64cbd79e1f7b4') | |
source_x86_64=("http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${pkgver}${_anotherpkgver}-74_amd64.deb") | |
md5sums_x86_64=('dcce36b6956fd12baff87427357558d2') | |
source_i686=("http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${pkgver}${_anotherpkgver}-27_i386.deb") | |
md5sums_i686=('c2840db7c82747591f8ab480da1dcca0') | |
depends=("alsa-lib>=1.0.14" "gconf" "gtk2" "glib2" "nss" "libsystemd" "libxtst" "libx11" "libxss" "libcurl-compat" "desktop-file-utils" "rtmpdump") | |
optdepends=('ffmpeg0.10: Adds support for playback of local files' | |
'zenity: Adds support for importing local files' | |
) | |
package() { | |
cd "${srcdir}" | |
tar -xzf data.tar.gz -C "${pkgdir}" | |
install -D "${pkgdir}"/usr/share/spotify/spotify.desktop "${pkgdir}"/usr/share/applications/spotify.desktop | |
install -D "${pkgdir}"/usr/share/spotify/icons/spotify-linux-512.png "${pkgdir}"/usr/share/pixmaps/spotify-client.png | |
for size in 22 24 32 48 64 128 256 512; do | |
install -D "${pkgdir}/usr/share/spotify/icons/spotify-linux-$size.png" \ | |
"${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/spotify.png" | |
done | |
chmod -R go-w "${pkgdir}"/usr | |
# Bin Script | |
rm "${pkgdir}"/usr/bin/spotify | |
install -Dm755 "${srcdir}/spotify" "${pkgdir}/usr/bin/spotify" | |
# Copy protocol file for KDE | |
install -Dm644 "${srcdir}/spotify.protocol" "${pkgdir}/usr/share/kservices5/spotify.protocol" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment