diff options
author | Ole Jon Bjørkum | 2015-10-28 18:18:14 +0100 |
---|---|---|
committer | Ole Jon Bjørkum | 2015-10-28 18:18:14 +0100 |
commit | 51982b672095ccd13a94241446eb17ea999ede04 (patch) | |
tree | d228ede501ca5b4e211b64fae39078b741ae88f2 | |
download | aur-51982b672095ccd13a94241446eb17ea999ede04.tar.gz |
Spotify 0.9.17
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | spotify-stable.install | 52 |
3 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e39ab108b6d6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = spotify-stable + pkgdesc = A proprietary music streaming service. + pkgver = 0.9.17 + pkgrel = 1 + url = https://www.spotify.com + install = spotify-stable.install + arch = x86_64 + license = custom:Copyright (c) 2014 Spotify AB + depends = binutils + depends = desktop-file-utils + depends = ffmpeg-compat + depends = libxss + depends = python2-xdg + depends = qt4 + depends = openssl + depends = wget + depends = xdg-utils + conflicts = spotify + conflicts = spotify094 + conflicts = spotify32bit + 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-stable + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1c89b9042d8f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Ole Jon Bjørkum <mail at olejon dot net> + +pkgname=spotify-stable +pkgver=0.9.17 +pkgrel=1 +pkgdesc="A proprietary music streaming service." +arch=('x86_64') +url="https://www.spotify.com" +license=('custom:Copyright (c) 2014 Spotify AB') +depends=('binutils' 'desktop-file-utils' 'ffmpeg-compat' 'libxss' 'python2-xdg' 'qt4' 'openssl' 'wget' 'xdg-utils') +conflicts=('spotify' 'spotify094' 'spotify32bit') +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-stable.install b/spotify-stable.install new file mode 100644 index 000000000000..11753ad81bc9 --- /dev/null +++ b/spotify-stable.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 -e "Downloading and installing necessary library...\n" + + wget https://dl.dropboxusercontent.com/u/8593574/Spotify/Arch%20Linux/libgcrypt.so.11 -O /usr/lib/libgcrypt.so.11 + ldconfig + + 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" +} |