spotify: link to EULA instead of installing
following the example of discord, discord-ptb, and maybe others closes #42283
This commit is contained in:
parent
fbc9b66c90
commit
152723896f
|
@ -0,0 +1 @@
|
|||
The current version can be found at: https://www.spotify.com/us/legal/end-user-agreement/
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'spotify'
|
||||
pkgname=spotify
|
||||
version=1.1.84
|
||||
revision=4
|
||||
revision=5
|
||||
archs="x86_64"
|
||||
create_wrksrc=yes
|
||||
hostmakedepends="curl w3m libcurl"
|
||||
|
@ -12,22 +12,10 @@ license="custom:Proprietary"
|
|||
homepage="https://www.spotify.com"
|
||||
distfiles="http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${version}.716.gc5f8b819-2_amd64.deb"
|
||||
checksum=7c5708ae323cc0d83a93236761622c7ca704c24e4291e05cf734c47132597647
|
||||
_license_checksum=4465d0bba5deb87866184b04ba76604cd93561c0dc9cd21cacdf5b0295bdae3a
|
||||
repository=nonfree
|
||||
restricted=yes
|
||||
nostrip=yes
|
||||
|
||||
post_extract() {
|
||||
curl -L https://www.spotify.com/us/legal/end-user-agreement/ |
|
||||
w3m -dump -I utf-8 -T text/html |
|
||||
sed -n '/Spotify Terms of Use/,/rights under these Terms, to any third party./p' > EULA
|
||||
|
||||
filesum="$(xbps-digest EULA)"
|
||||
if [ "$filesum" != "$_license_checksum" ]; then
|
||||
msg_error "SHA256 mismatch for EULA:\n$filesum\n"
|
||||
fi
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin "${FILESDIR}/spotify"
|
||||
|
||||
|
@ -52,5 +40,5 @@ do_install() {
|
|||
# provide dynamic libraries
|
||||
ln -s /usr/lib/libcurl.so.4 ${DESTDIR}/usr/libexec/spotify/libcurl-gnutls.so.4
|
||||
|
||||
vlicense EULA
|
||||
vlicense ${FILESDIR}/EULA
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue