1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
5 pkgdesc="C API package allowing third party developers to write applications that utilize the Spotify music streaming service"
7 url="http://developer.spotify.com/en/libspotify/overview/"
10 source=(http://developer.spotify.com/download/libspotify/libspotify-${pkgver}-Linux-${CARCH}-release.tar.gz)
12 md5sums=('eaec871b27dc46087681337b6992d787')
13 sha256sums=('2c8748b65d63f4da5383f24410b10af294290c1d163355b1f4aecae2ed2f245f')
14 if [ "$CARCH" == "x86_64" ]; then
15 md5sums=('263c17a6f74268217fab7300db12b017')
16 sha256sums=('07c87bf12b63249c07c07a9f65b12264ab07f4b460c453d03d1b6e3086fbdc46')
20 cd "$srcdir/$pkgname-Linux-$CARCH-release"
22 # Don't do stupid things from a Makefile
23 msg2 "Patching Makefile..."
24 sed -i 's/ldconfig//' Makefile
28 cd "$srcdir/$pkgname-Linux-$CARCH-release"
30 make prefix="$pkgdir/usr" install
32 # Install documentation
33 cp -R share $pkgdir/usr/share
34 mkdir -p $pkgdir/usr/share/man
35 mv $pkgdir/usr/share/man3 $pkgdir/usr/share/man/man3
37 # Correct pkgconfig file
38 sed -e s:PKG_PREFIX:/usr:g \
39 < lib/pkgconfig/libspotify.pc \
40 > $pkgdir/usr/lib/pkgconfig/libspotify.pc
43 install -Dm644 LICENSE licenses.xhtml $pkgdir/usr/share/doc/libspotify
44 mkdir -p $pkgdir/usr/share/licenses/libspotify
45 ln -s ../../doc/libspotify/LICENSE $pkgdir/usr/share/licenses/libspotify/LICENSE
49 # pkgbuild-update-sums-on-save: nil