diff options
author | crystaly | 2016-03-03 18:24:38 +0100 |
---|---|---|
committer | crystaly | 2016-03-03 18:24:38 +0100 |
commit | eebb9ee0008f5a935d9cc9b08462b4409f6313d6 (patch) | |
tree | 039eb8823ce51dd923f8dae2d00da99e4a80162c /spotify-connect-web.install | |
download | aur-eebb9ee0008f5a935d9cc9b08462b4409f6313d6.tar.gz |
Initial import
Diffstat (limited to 'spotify-connect-web.install')
-rw-r--r-- | spotify-connect-web.install | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spotify-connect-web.install b/spotify-connect-web.install new file mode 100644 index 000000000000..094d0b4a720c --- /dev/null +++ b/spotify-connect-web.install @@ -0,0 +1,26 @@ + +post_upgrade() { + # compile cffi + cd /usr/lib/spotify-connect-web/ + python2 -c "from connect_ffi import ffi, lib" + + systemctl daemon-reload +} + +# arg 1: the new package version +post_install() { + + # do something here + echo "Choose a user to run spotify-connect-web as." + echo "Obtain a binary appkey from https://developer.spotify.com/my-account/keys and put it into users home under ~/.config/spotify-connect-web/" + echo "Start via: systemctl start spotify-connect-web@username" + echo "Login to spotify on localhost:4000" + echo "Login has to be done only once, a binary credential blob is used afterwards (~/.config/spotify-connect-web/credentials.json)" + + post_upgrade +} + +pre_remove(){ + systemctl stop spotify-connect-web@*.service + rm -rf /usr/lib/spotify-connect-web/__pycache__ +} |