1 # Maintainer: pyther <pyther@pyther.net>
2 # Contributor: Gadget3000 <gadget3000@msn.com>
3 # Contributor: Eothred <yngve.levinsen@gmail.com>
4 # Contributor: xintron <carlsson.marcus@gmail.com>
8 _anotherpkgver=.ga1569aa.552-1
10 pkgdesc="A proprietary peer-to-peer music streaming service"
12 arch=('x86_64' 'i686')
13 license=('custom:Copyright (c) 2006-2010 Spotify Ltd')
14 url="http://www.spotify.com"
15 changelog='spotify.changelog'
18 install='spotify.install'
20 if [ "${CARCH}" = "x86_64" ]; then
21 md5sums=('93d6dccd2064684eb4c3ac42bfe0a986'
22 '617f76866c4c0a3dc1ca3996d93676ac'
23 '37ef199620c3257d1a3e3fb304f4d9b9'
24 '4d1506851cdff3a8f82da32b08df131c'
25 '93a3e319f42b0594b80a140b6037363a'
26 'dedc9038d009da84ba889ddb3794a74c'
27 '283d389f418b8a36629d9bb2b6476a17')
29 libarch=x86_64-linux-gnu
30 elif [ "${CARCH}" = "i686" ]; then
31 md5sums=('c96d9af6d5fa046b994c9d9d2d1751e1'
32 'e0858bcbf64c6153c937197002d1c62d'
33 'e2cc39229a453fb3da9662dcb87a2ad4'
34 '6e9adba486db2f958fb347ce9d772f09'
35 '6cf1dde9dee8f4f7b034a4e13400e857'
36 '583e531ba01663791a2eaa29c3caa950'
37 '283d389f418b8a36629d9bb2b6476a17')
39 libarch=i386-linux-gnu
42 depends=("alsa-lib>=1.0.14" "qt>=4.5.0" "libxss" "openssl" "qtwebkit" "gtk2" "gconf")
43 source=("http://download.spotify.com/preview/spotify-client_${pkgver}${_anotherpkgver}${_carch}.deb"
44 "http://mirrors.us.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.46-3ubuntu1${_carch}.deb"
45 "http://mirrors.us.kernel.org/ubuntu/pool/main/n/nspr/libnspr4_4.8.7-0ubuntu3${_carch}.deb"
46 "http://mirrors.us.kernel.org/ubuntu/pool/main/n/nss/libnss3_3.12.9+ckbi-1.82-0ubuntu6${_carch}.deb"
47 "http://mirrors.us.kernel.org/ubuntu/pool/universe/o/openssl098/libssl0.9.8_0.9.8o-7ubuntu1${_carch}.deb"
48 "http://mirrors.us.kernel.org/ubuntu/pool/main/q/qtwebkit-source/libqtwebkit4_2.2~2011week36-0ubuntu1${_carch}.deb"
54 # Extract Spotify Sources
55 install -d "${srcdir}/spotifydeb"
56 ar x spotify-client_${pkgver}${_anotherpkgver}${_carch}.deb
57 bsdtar xf data.tar.gz -C "${srcdir}/spotifydeb"
59 # libpng12 - ubuntu oneiric
60 install -d "${srcdir}/libpng12"
61 ar x "${srcdir}/libpng12-0_1.2.46-3ubuntu1${_carch}.deb"
62 bsdtar xf data.tar.gz -C "${srcdir}/libpng12"
64 # libnspr4 - ubuntu oneiric
65 install -d "${srcdir}/libnspr4"
66 ar x "${srcdir}/libnspr4_4.8.7-0ubuntu3${_carch}.deb"
67 bsdtar xf data.tar.gz -C "${srcdir}/libnspr4"
69 # libnss3 - ubuntu oneiric
70 install -d "${srcdir}/libnss3"
71 ar x "${srcdir}/libnss3_3.12.9+ckbi-1.82-0ubuntu6${_carch}.deb"
72 bsdtar xf data.tar.gz -C "${srcdir}/libnss3"
74 # openssl 0.98 - ubuntu oneiric
75 install -d "${srcdir}/openssl"
76 ar x "${srcdir}/libssl0.9.8_0.9.8o-7ubuntu1${_carch}.deb"
77 bsdtar xf data.tar.gz -C "${srcdir}/openssl"
79 # qtwebkit - ubuntu oneiric
80 install -d "${srcdir}/libqtwebkit"
81 ar x "${srcdir}/libqtwebkit4_2.2~2011week36-0ubuntu1${_carch}.deb"
82 bsdtar xf data.tar.lzma -C "${srcdir}/libqtwebkit"
88 # Install Spotify Files
89 install -d ${pkgdir}/usr/share/
90 cp -r "${srcdir}/spotifydeb/usr/share/spotify/" "${pkgdir}/usr/share"
91 cp -r "${srcdir}/spotifydeb/usr/share/pixmaps/" "${pkgdir}/usr/share"
92 cp -r "${srcdir}/spotifydeb/usr/share/applications/" "${pkgdir}/usr/share"
95 install -d "${pkgdir}/usr/bin"
96 install -D -m755 "${srcdir}/spotify" "${pkgdir}/usr/bin"
99 install -d "${pkgdir}/usr/share/spotify/libs"
102 install -D -m644 "${srcdir}/libnspr4/usr/lib/$libarch/libnspr4.so" \
103 "${pkgdir}/usr/share/spotify/libs/"
104 ln -s ./libnspr4.so "${pkgdir}/usr/share/spotify/libs/libnspr4.so.0d"
107 install -D -m644 "${srcdir}/libnspr4/usr/lib/$libarch/libplc4.so" \
108 "${pkgdir}/usr/share/spotify/libs/"
109 ln -s ./libplc4.so "${pkgdir}/usr/share/spotify/libs/libplc4.so.0d"
112 install -D -m644 "${srcdir}/libnss3/usr/lib/$libarch/libnss3.so" \
113 "${pkgdir}/usr/share/spotify/libs/"
114 ln -s ./libnss3.so "${pkgdir}/usr/share/spotify/libs/libnss3.so.1d"
117 install -D -m644 "${srcdir}/libnss3/usr/lib/$libarch/libnssutil3.so" \
118 "${pkgdir}/usr/share/spotify/libs/"
119 ln -s ./libnssutil3.so "${pkgdir}/usr/share/spotify/libs/libnssutil3.so.1d"
122 install -D -m644 "${srcdir}/libnss3/usr/lib/$libarch/libsmime3.so" \
123 "${pkgdir}/usr/share/spotify/libs/"
124 ln -s ./libsmime3.so "${pkgdir}/usr/share/spotify/libs/libsmime3.so.1d"
127 install -D -m644 "${srcdir}/libpng12/lib/$libarch/libpng12.so.0.46.0" \
128 "${pkgdir}/usr/share/spotify/libs/"
129 ln -s ./libpng12.so.0.46.0 "${pkgdir}/usr/share/spotify/libs/libpng12.so.0"
132 install -D -m644 "${srcdir}/libqtwebkit/usr/lib/$libarch/libQtWebKit.so.4.9.0" \
133 "${pkgdir}/usr/share/spotify/libs/"
134 ln -s ./libQtWebKit.so.4.9.0 "${pkgdir}/usr/share/spotify/libs/libQtWebKit.so.4"
137 install -D -m644 "${srcdir}/openssl/lib/libcrypto.so.0.9.8" \
138 "${pkgdir}/usr/share/spotify/libs/"
141 install -D -m644 "${srcdir}/openssl/lib/libssl.so.0.9.8" \
142 "${pkgdir}/usr/share/spotify/libs/"
145 install -d ${pkgdir}/usr/share/licenses/spotify-beta
146 install -D -m644 ${srcdir}/spotifydeb/usr/share/doc/spotify-client/copyright \
147 ${pkgdir}/usr/share/licenses/spotify-beta/