updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / despotify-pulse-svn / PKGBUILD
blobb4458cab8358ea00b01afd67b4686432539a08c8
1 pkgname=despotify-pulse-svn
2 pkgver=425
3 pkgrel=2
4 pkgdesc="An open source client for Spotify whit pulseaudio"
5 arch=('i686' 'x86_64')
6 url="http://despotify.sourceforge.net/"
7 license=('GPL2')
8 depends=('libvorbis' 'openssl' 'pulseaudio')
9 makedepends=('subversion' 'ncurses' 'libtool' 'expat')
10 provides=('despotify-svn')
11 conflicts=('despotify-svn' 'despotify-ao-svn')
12 _svntrunk=https://despotify.svn.sourceforge.net/svnroot/despotify/src
13 _svnmod=src
15 build() {
16   cd "$srcdir"
17   if [ -d "$_svnmod/.svn" ]; then
18     (cd "$_svnmod" && svn up -r "$pkgver")
19   else
20     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
21   fi
22   msg "SVN checkout done or server timeout"
24   cd "$_svnmod"
26   msg "Building..."
28   sed 's:gstreamer:pulseaudio:' <Makefile.local.mk.dist > Makefile.local.mk
29   make || return 1
31   # The installer fails to make these directories
32   mkdir -p "$pkgdir/usr/include"
33   mkdir -p "$pkgdir/usr/bin"
35   # Install to the pkgdir
36   make INSTALL_PREFIX="$pkgdir/usr" DESTDIR="$pkgdir/" install
38   # Shouldn't be executable, fixing
39   chmod -x "$pkgdir/usr/include/despotify.h"