• Instalar spotify v.1.0.57.474


    Si intentamos instalar este programa desde AUR da este error:
    curl: (22) The requested URL returned error: 404 Not Found
    ==> ERROR: Hubo fallos durante la descarga de http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.0.55.487.g256699aa-16_amd64.deb
    Cancelando…

    Solución:
    En consola (Recomiendo utilizar Konsole):
    yaourt -S spotify
    Nos sale:
    ==> ¿Quiere editar PKGBUILD? [S/n] (“A” para anular)
    ==> ------------------------------------------------
    ==>
    Normalmente ponemos una n (no lo editamos) pero en este caso sí hace falta editarlo. Ponemos: s

    ==> ¿Quiere editar PKGBUILD? [S/n] (“A” para anular)
    ==> ------------------------------------------------
    ==> s

    Por favor, añada $VISUAL a las variables de entorno
    por ejemplo:
    export VISUAL=“vim” (en ~/.bashrc)
    (remplace vim por su editor preferido)
    Ponemos: nano
    (Se puede utilizar Vim pero desde nano es más sencillo.)
    Nos aparece esto:

    Maintainer: Ashley Whetter <(firstname) @ awhetter.co.uk>

    Contributor: Eothred [email protected]

    pkgname=spotify
    pkgver=1.0.55.487
    _anotherpkgver=.g256699aa
    _amd64_pkgrel=16
    _i386_pkgrel=16
    pkgrel=2
    pkgdesc="A proprietary music streaming service"
    arch=(‘x86_64’ ‘i686’)
    license=(‘custom:“Copyright © 2006-2010 Spotify Ltd”’)
    url="http://www.spotify.com"
    options=(’!strip’ ‘!upx’)

    source=(‘spotify’
    ‘spotify.protocol’
    ‘LICENSE’)
    sha256sums=(‘989920e9360cadc1a8103b8c04acf0c87cb7911eb9a09dddb0cf4708d6249d34’
    ‘af54f3b90cac46fa100b3f919a9225d10d847617d24aa9af3d832e7689f482c3’
    ‘4e8bea31ca27e16cac9c9dcd8f6ec27e1f82b45de86d6fee7a1e77e23f884b92’)
    sha256sums_x86_64=(‘20073ba6fdf7d960361d4cb2afa6453e7a2108bd84df8f9cdf2cdf7225a83027’)
    sha256sums_i686=(‘183f87b930b75d85ecb34cef2b26b0355a3a18ffa38e0e0a476bfb190972b74d’)

    source_x86_64=(“http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${pkgver}${_anotherpkgver}-${_amd64_pkgrel}_amd64.deb”)

    source_i686=(“http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${pkgver}${_anotherpkgver}-${_i386_pkgrel}_i386.deb”)

    depends=(“alsa-lib>=1.0.14” “gconf” “gtk2” “glib2” “nss” “libsystemd” “libxtst” “libx11” “libxss” “openssl-1.0” “libcurl-compat” “desktop-file-utils” “rtmpdump”)

    • Manteniendo pulsada la tecla SUPR (suprimir) borramos todo y pegamos esto:

    Maintainer: Ashley Whetter <(firstname) @ awhetter.co.uk>

    Contributor: Eothred [email protected]

    pkgname=spotify
    pkgver=1.0.57.474
    _anotherpkgver=.gca9c9538
    _amd64_pkgrel=30
    _i386_pkgrel=30
    pkgrel=2
    pkgdesc="A proprietary music streaming service"
    arch=(‘x86_64’ ‘i686’)
    license=(‘custom:“Copyright © 2006-2010 Spotify Ltd”’)
    url="http://www.spotify.com"
    options=(’!strip’ ‘!upx’)

    source=(‘spotify’
    ‘spotify.protocol’
    ‘LICENSE’)
    sha256sums=(‘989920e9360cadc1a8103b8c04acf0c87cb7911eb9a09dddb0cf4708d6249d34’
    ‘af54f3b90cac46fa100b3f919a9225d10d847617d24aa9af3d832e7689f482c3’
    ‘4e8bea31ca27e16cac9c9dcd8f6ec27e1f82b45de86d6fee7a1e77e23f884b92’)
    sha256sums_x86_64=(‘fe46f2084c45c756bee366f744d2821d79e82866b19942e30bb2a20c1e597437’)
    sha256sums_i686=(‘8f2f4e6c71fe923512062e1c0378424a74651f5c107c05e8daf3b7bf67fd6de1’)

    source_x86_64=(“http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${pkgver}${_anotherpkgver}-${_amd64_pkgrel}_amd64.deb”)

    source_i686=(“http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${pkgver}${_anotherpkgver}-${_i386_pkgrel}_i386.deb”)

    depends=(“alsa-lib>=1.0.14” “gconf” “gtk2” “glib2” “nss” “libsystemd” “libxtst” “libx11” “libxss” “openssl-1.0” “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"
    
    # License
    install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    

    }

    . Luego pulsamos: Ctrl más O
    . Tecla Enter
    . y Ctrl más x

    ==> ¿Quiere editar PKGBUILD? [S/n] (“A” para anular)
    ==> ------------------------------------------------
    ==> n

    ==> Continuar compilando spotify? [S/n]
    ==> -----------------------------------
    ==> s
    Y continuamos la instalación

    Aprendiendo que no es poco

  • Desde aquí os será más fácil seleccionar el texto entero que tenéis que pegar:
    https://github.com/RPDiep/aur-spotify/blob/master/PKGBUILD

    Aprendiendo que no es poco

Posts 2Views 156
Log in to reply