makedeb


spotify 1.1.84.716-1


A proprietary music streaming service

Click here to go back to the commit logs for spotify.

Commit:


Hash: 0502a009a32657de48862107ea4de1038efd7211

Message: fix, cleanup and update to 1.1.68

Diff


diff --git a/.SRCINFO b/.SRCINFO
index c9a6d0c..a2d16d8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,36 +1,39 @@
+generated-by = makedeb-makepkg
+
 pkgbase = spotify
 	pkgdesc = A proprietary music streaming service
-	pkgver = 1.1.56.595
+	pkgver = 1.1.68.632
 	pkgrel = 1
 	epoch = 1
 	url = https://www.spotify.com
 	arch = x86_64
 	license = custom
-	depends = alsa-lib>=1.0.14
-	depends = gtk3
-	depends = libxss
-	depends = desktop-file-utils
-	depends = openssl
-	depends = nss
-	depends = at-spi2-atk
-	depends = libcurl-gnutls
-	depends = libsm
-	optdepends = ffmpeg-compat-57: Adds support for playback of local files
-	optdepends = zenity: Adds support for importing local files
-	optdepends = libnotify: Desktop notifications
+	depends = libasound2
+	depends = libatk-bridge2.0-0
+	depends = libatomic1
+	depends = libcurl3-gnutls
+	depends = libgbm1
+	depends = libgconf-2-4
+	depends = libglib2.0-0
+	depends = libgtk-3-0
+	depends = libnss3
+	depends = libssl1.1
+	depends = libxshmfence1
+	depends = libxss1
+	depends = libxtst6
+	depends = xdg-utils
+	optdepends = libavcodec58
+	optdepends = libavcodec-extra58
+	optdepends = libavformat58
+	optdepends = libnotify4: Desktop notifications
+	provides = spotify
+	conflicts = spotify
 	options = !strip
+	source = http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.68.632.g2b11de83_amd64.deb
 	source = spotify.protocol
 	source = LICENSE
-	source = spotify-1.1.56.595-x86_64.deb::http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.56.595.g2d2da0de_amd64.deb
-	source = spotify-1.1.56.595-Release::http://repository.spotify.com/dists/testing/Release
-	source = spotify-1.1.56.595-Release.sig::http://repository.spotify.com/dists/testing/Release.gpg
-	source = spotify-1.1.56.595-x86_64-Packages::http://repository.spotify.com/dists/testing/non-free/binary-amd64/Packages
-	validpgpkeys = 8FD3D9A8D3800305A9FFF259D1742AD60D811D58
-	sha512sums = 999abe46766a4101e27477f5c9f69394a4bb5c097e2e048ec2c6cb93dfa1743eb436bde3768af6ba1b90eaac78ea8589d82e621f9cbe7d9ab3f41acee6e8ca20
-	sha512sums = 2e16f7c7b09e9ecefaa11ab38eb7a792c62ae6f33d95ab1ff46d68995316324d8c5287b0d9ce142d1cf15158e61f594e930260abb8155467af8bc25779960615
-	sha512sums = 4a270461d07c339a3fdf49cd0a8728d4fc7300be001a1ba59c74f05bf273b79a61bde6d046c27a6af38dfb6af58963fbd8b8cd7468c91b91e48b0d32b3dcc2b5
-	sha512sums = SKIP
-	sha512sums = SKIP
-	sha512sums = SKIP
+	sha256sums = 72a3ab2cd491ff5cdb8d54fce3edc301a24c49961c447c53e018f50f4f47c92c
+	sha256sums = af54f3b90cac46fa100b3f919a9225d10d847617d24aa9af3d832e7689f482c3
+	sha256sums = 4e8bea31ca27e16cac9c9dcd8f6ec27e1f82b45de86d6fee7a1e77e23f884b92
 
 pkgname = spotify
diff --git a/PKGBUILD b/PKGBUILD
index 6faad60..574d156 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,84 +1,54 @@
-# AUR Maintainer: Ashley Whetter <(firstname) @ awhetter.co.uk>
-# AUR Co-Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
-# AUR PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
-# AUR Contributor: Eothred <yngve.levinsen@gmail.com>
 # Maintainer: Keitachikawa <keitachikawa@gmail.com>
 # Conmaintainer: zocker_160 <zocker1600 at posteo dot net>
 
 pkgname=spotify
-pkgver=1.1.56.595
+pkgver=1.1.68.632
 epoch=1
-_commit=g2d2da0de
+_commit=g2b11de83
 pkgrel=1
 pkgdesc='A proprietary music streaming service'
 arch=('x86_64')
 license=('custom')
 url='https://www.spotify.com'
-depends=('alsa-lib>=1.0.14' 'gtk3' 'libxss' 'desktop-file-utils' 'openssl' 'nss' 'at-spi2-atk' 'libcurl-gnutls' 'libsm')
-optdepends=('ffmpeg-compat-57: Adds support for playback of local files'
-            'zenity: Adds support for importing local files'
-            'libnotify: Desktop notifications')
-options=('!strip')
-
-# NOTE: We switched from stable to testing on 18th march, as the spotify
-# stable repository is always outdated. Testing seems to be in sync with snap:
-# https://snapcraft.io/spotify
-# http://repository.spotify.com/dists/testing/Release
-# http://repository.spotify.com/dists/testing/non-free/binary-amd64/Packages
-# http://repository.spotify.com/dists/testing/Release.gpg
-source=('spotify.protocol'
-        'LICENSE'
-        "${pkgname}-${pkgver}-x86_64.deb::http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${pkgver}.${_commit}_amd64.deb"
-        # GPG signature check
-        "${pkgname}-${pkgver}-Release::http://repository.spotify.com/dists/testing/Release"
-        "${pkgname}-${pkgver}-Release.sig::http://repository.spotify.com/dists/testing/Release.gpg"
-        "${pkgname}-${pkgver}-x86_64-Packages::http://repository.spotify.com/dists/testing/non-free/binary-amd64/Packages")
-sha512sums=('999abe46766a4101e27477f5c9f69394a4bb5c097e2e048ec2c6cb93dfa1743eb436bde3768af6ba1b90eaac78ea8589d82e621f9cbe7d9ab3f41acee6e8ca20'
-            '2e16f7c7b09e9ecefaa11ab38eb7a792c62ae6f33d95ab1ff46d68995316324d8c5287b0d9ce142d1cf15158e61f594e930260abb8155467af8bc25779960615'
-            '4a270461d07c339a3fdf49cd0a8728d4fc7300be001a1ba59c74f05bf273b79a61bde6d046c27a6af38dfb6af58963fbd8b8cd7468c91b91e48b0d32b3dcc2b5'
-            'SKIP'
-            'SKIP'
-            'SKIP')
-validpgpkeys=('8FD3D9A8D3800305A9FFF259D1742AD60D811D58') # Spotify <tux@spotify.com>
+provides=($pkgname)
+conflicts=($pkgname)
+depends=('libasound2' 'libatk-bridge2.0-0' 'libatomic1' 'libcurl3-gnutls' 'libgbm1' 'libgconf-2-4' 'libglib2.0-0' 'libgtk-3-0'
+        'libnss3' 'libssl1.1' 'libxshmfence1' 'libxss1' 'libxtst6' 'xdg-utils')
 
-prepare() {
-    # Validate hashes from the PGP signed "Release" file
-    echo "$(grep non-free/binary-amd64/Packages ${pkgname}-${pkgver}-Release | tail -n 2 | head -n 1 | awk '{print $1}') ${pkgname}-${pkgver}-x86_64-Packages" \
-        > "${pkgname}-${pkgver}-x86_64-Packages.sha256"
-    sha256sum -c "${pkgname}-${pkgver}-x86_64-Packages.sha256"
+optdepends=('libavcodec58' 'libavcodec-extra58' 'libavformat58'
+            'libnotify4: Desktop notifications')
+options=('!strip')
 
-    echo "$(grep SHA512 ${pkgname}-${pkgver}-x86_64-Packages | head -n 1 | awk '{print $2}') ${pkgname}-${pkgver}-x86_64.deb" \
-        > "${pkgname}-${pkgver}-x86_64.deb.sha512"
-    sha512sum -c "${pkgname}-${pkgver}-x86_64.deb.sha512"
-}
+#https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.1.68.632.g2b11de83_amd64.deb
+source=("http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_${pkgver}.${_commit}_amd64.deb"
+        "spotify.protocol"
+        "LICENSE")
+        
+sha256sums=('72a3ab2cd491ff5cdb8d54fce3edc301a24c49961c447c53e018f50f4f47c92c'
+            'af54f3b90cac46fa100b3f919a9225d10d847617d24aa9af3d832e7689f482c3'
+            '4e8bea31ca27e16cac9c9dcd8f6ec27e1f82b45de86d6fee7a1e77e23f884b92')
 
 package() {
-    cd "${srcdir}"
+    cd $srcdir
 
-    tar -xzf data.tar.gz -C "${pkgdir}"
+    tar -xzf 'data.tar.gz' -C "${pkgdir}"
 
-    install -Dm644 "${pkgdir}"/usr/share/spotify/spotify.desktop "${pkgdir}"/usr/share/applications/spotify.desktop
-    install -Dm644 "${pkgdir}"/usr/share/spotify/icons/spotify-linux-512.png "${pkgdir}"/usr/share/pixmaps/spotify-client.png
+    # we ignore the postinst and prerm because they add the spotify repository 
+    #mkdir -p "${pkgdir}/DEBIAN"
+    #tar -xf 'control.tar.gz' -C "${pkgdir}/DEBIAN"
+    #rm "${pkgdir}/DEBIAN/control"
 
     for size in 22 24 32 48 64 128 256 512; do
-        install -Dm644 "${pkgdir}/usr/share/spotify/icons/spotify-linux-$size.png" \
+        install -D -m644 "${pkgdir}/usr/share/spotify/icons/spotify-linux-$size.png" \
             "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/spotify.png"
     done
 
-    # Move spotify binary to its proper location
-    mkdir -p "${pkgdir}"/opt/spotify
-    mv "${pkgdir}/usr/share/spotify" "${pkgdir}/opt/"
-
-    # Symlink spotify binary which is located in /opt
-    ln -sf /opt/spotify/spotify "${pkgdir}/usr/bin/spotify"
-
+    install -D -m644 "${pkgdir}"/usr/share/spotify/spotify.desktop -t "${pkgdir}"/usr/share/applications
+    
     # Copy protocol file for KDE
-    install -Dm644 "${srcdir}/spotify.protocol" "${pkgdir}/usr/share/kservices5/spotify.protocol"
+    install -D -m644 "${srcdir}/spotify.protocol" "${pkgdir}/usr/share/kservices5/spotify.protocol"
 
     # Install license
     # https://www.spotify.com/legal/end-user-agreement
-    install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-
-    # Fix permissions
-    chmod -R go-w "${pkgdir}"
+    install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }