This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 3rd, 2010  |  syntax: None  |  size: 1.33 KB  |  views: 187  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Schnouki <thomas.jost@gmail.com>
  2. pkgname=libspotify
  3. pkgver=0.0.6
  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}-linux6-${CARCH}.tar.gz)
  11.  
  12. md5sums=('5604472191b7830225bb7cc3e3129de7')
  13. sha1sums=('a6fe79207e34384c11cdfc5e68fd8cba1279c62a')
  14. if [ "$CARCH" == "x86_64" ]; then
  15.     md5sums=('6d680d953a46d391269401a08dc7d2ac')
  16.     sha1sums=('adc9ecca25bcdf4ce10649c71662b10855fcbf50')
  17. fi
  18.  
  19. build() {
  20.   cd "$srcdir/$pkgname-$pkgver-linux6-$CARCH"
  21.  
  22.   make prefix="$pkgdir/usr" install || return 1
  23.  
  24.   # Install documentation
  25.   mkdir -p $pkgdir/usr/share/man || return 1
  26.   cp -R share/man3 $pkgdir/usr/share/man/man3 || return 1
  27.   cp -R share/doc $pkgdir/usr/share/doc || return 1
  28.  
  29.   # Correct pkgconfig file
  30.   sed -e s:@pkg_prefix@:/usr:g \
  31.           < lib/pkgconfig/libspotify.pc.in \
  32.           > $pkgdir/usr/lib/pkgconfig/libspotify.pc || return 1
  33.  
  34.   # Custom license
  35.   mkdir -p $pkgdir/usr/share/licenses/libspotify || return 1
  36.   ln -s ../../doc/libspotify/LICENSE $pkgdir/usr/share/licenses/libspotify/LICENSE
  37. }
  38.  
  39. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data