updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / libspotify / PKGBUILD
blobcd8289924eeafe04cd2cd92f36628ce637f5ca4e
1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
2 pkgname=libspotify
3 pkgver=10.1.16
4 pkgrel=1
5 pkgdesc="C API package allowing third party developers to write applications that utilize the Spotify music streaming service"
6 arch=(i686 x86_64)
7 url="http://developer.spotify.com/en/libspotify/overview/"
8 license=('custom')
9 depends=('glibc')
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')
19 build() {
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
27 package() {
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
42   # Custom license
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
48 # Local Variables:
49 # pkgbuild-update-sums-on-save: nil
50 # End: