diff options
author | Ole Jon Bjørkum | 2016-04-30 19:21:36 +0200 |
---|---|---|
committer | Ole Jon Bjørkum | 2016-04-30 19:21:36 +0200 |
commit | e6922c20c40e4b961b380e431ee610fdb489265b (patch) | |
tree | 037165363831273f9600b25c44cd25ca7456b2be | |
download | aur-e6922c20c40e4b961b380e431ee610fdb489265b.tar.gz |
Spotify 0.9.17
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 22 | ||||
-rw-r--r-- | spotify-legacy.install | 52 |
3 files changed, 103 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7838522362c8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = spotify-legacy + pkgdesc = A proprietary music streaming service. + pkgver = 0.9.17 + pkgrel = 1 + url = https://www.spotify.com/download/linux/ + install = spotify-legacy.install + arch = x86_64 + license = custom:Copyright (c) 2014 Spotify AB + depends = binutils + depends = desktop-file-utils + depends = ffmpeg-compat + depends = gconf + depends = libgcrypt11 + depends = libxss + depends = openssl + depends = python2-xdg + depends = qt4 + depends = wget + depends = xdg-utils + provides = spotify=0.9.17 + conflicts = spotify + conflicts = spotify-beta + conflicts = spotify094 + conflicts = spotify-stable + source = http://repository-origin.spotify.com/pool/non-free/s/spotify/spotify-client-0.9.17_0.9.17.8.gd06432d.31-1_amd64.deb + md5sums = 69a320368ded33cfcc4e3bb4cc71575c + +pkgname = spotify-legacy + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..503bb9998922 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Ole Jon Bjørkum <mail at olejon dot net> + +pkgname=spotify-legacy +pkgver=0.9.17 +pkgrel=1 +pkgdesc="A proprietary music streaming service." +arch=('x86_64') +url="https://www.spotify.com/download/linux/" +license=('custom:Copyright (c) 2014 Spotify AB') +depends=('binutils' 'desktop-file-utils' 'ffmpeg-compat' 'gconf' 'libgcrypt11' 'libxss' 'openssl' 'python2-xdg' 'qt4' 'wget' 'xdg-utils') +provides=('spotify=0.9.17') +conflicts=('spotify' 'spotify-beta' 'spotify094' 'spotify-stable') +install=$pkgname.install +source=('http://repository-origin.spotify.com/pool/non-free/s/spotify/spotify-client-0.9.17_0.9.17.8.gd06432d.31-1_amd64.deb') +md5sums=('69a320368ded33cfcc4e3bb4cc71575c') + +package() +{ + mkdir -p $pkgdir/opt + tar -xf $srcdir/data.tar.xz + cp -rp $srcdir/opt/spotify /tmp/spotify-stable +} diff --git a/spotify-legacy.install b/spotify-legacy.install new file mode 100644 index 000000000000..c75d498b95c2 --- /dev/null +++ b/spotify-legacy.install @@ -0,0 +1,52 @@ +post_install() +{ + echo -e "\nInstalling Spotify..." + + mv /tmp/spotify-stable /opt/spotify + chown -R root.root /opt/spotify + ln -s /opt/spotify/spotify-client/spotify /usr/bin/spotify + + echo "Installing Spotify icons..." + + xdg-icon-resource install --size 16 /opt/spotify/spotify-client/Icons/spotify-linux-16.png "spotify-client" + xdg-icon-resource install --size 22 /opt/spotify/spotify-client/Icons/spotify-linux-22.png "spotify-client" + xdg-icon-resource install --size 24 /opt/spotify/spotify-client/Icons/spotify-linux-24.png "spotify-client" + xdg-icon-resource install --size 32 /opt/spotify/spotify-client/Icons/spotify-linux-32.png "spotify-client" + xdg-icon-resource install --size 48 /opt/spotify/spotify-client/Icons/spotify-linux-48.png "spotify-client" + xdg-icon-resource install --size 64 /opt/spotify/spotify-client/Icons/spotify-linux-64.png "spotify-client" + xdg-icon-resource install --size 128 /opt/spotify/spotify-client/Icons/spotify-linux-128.png "spotify-client" + xdg-icon-resource install --size 256 /opt/spotify/spotify-client/Icons/spotify-linux-256.png "spotify-client" + xdg-icon-resource install --size 512 /opt/spotify/spotify-client/Icons/spotify-linux-512.png "spotify-client" + + echo "Adding Spotify to applications menu..." + + cp -p /opt/spotify/spotify-client/spotify.desktop /usr/share/applications/ + + echo "Adding license URL to /usr/share/licenses/spotify-stable/LICENSE..." + + mkdir -p /usr/share/licenses/spotify-stable + echo "https://www.spotify.com/legal/end-user-agreement/" > /usr/share/licenses/spotify-stable/LICENSE + + echo -e "Spotify installed!\n" +} + +pre_remove() +{ + echo -e "\nUninstalling Spotify..." + + xdg-icon-resource uninstall --size 16 /opt/spotify/spotify-client/Icons/spotify-linux-16.png "spotify-client" + xdg-icon-resource uninstall --size 22 /opt/spotify/spotify-client/Icons/spotify-linux-22.png "spotify-client" + xdg-icon-resource uninstall --size 24 /opt/spotify/spotify-client/Icons/spotify-linux-24.png "spotify-client" + xdg-icon-resource uninstall --size 32 /opt/spotify/spotify-client/Icons/spotify-linux-32.png "spotify-client" + xdg-icon-resource uninstall --size 48 /opt/spotify/spotify-client/Icons/spotify-linux-48.png "spotify-client" + xdg-icon-resource uninstall --size 64 /opt/spotify/spotify-client/Icons/spotify-linux-64.png "spotify-client" + xdg-icon-resource uninstall --size 128 /opt/spotify/spotify-client/Icons/spotify-linux-128.png "spotify-client" + xdg-icon-resource uninstall --size 256 /opt/spotify/spotify-client/Icons/spotify-linux-256.png "spotify-client" + xdg-icon-resource uninstall --size 512 /opt/spotify/spotify-client/Icons/spotify-linux-512.png "spotify-client" + + rm -f /usr/share/applications/spotify.desktop + rm -f /usr/bin/spotify + rm -rf /opt/spotify + + echo -e "Spotify uninstalled!\n" +} |