From c98e9961d3e481fe21821bf36e9c9a699ac8cab8 Mon Sep 17 00:00:00 2001 From: Mike Brown Date: Wed, 6 Feb 2013 11:53:28 -0500 Subject: [PATCH] adding aur/despoitfy-svn for a user blomblom on irc --- aur/despotify-svn/PKGBUILD | 55 +++++++++++++++++++++++++++++ aur/despotify-svn/despotify.install | 11 ++++++ 2 files changed, 66 insertions(+) create mode 100644 aur/despotify-svn/PKGBUILD create mode 100644 aur/despotify-svn/despotify.install diff --git a/aur/despotify-svn/PKGBUILD b/aur/despotify-svn/PKGBUILD new file mode 100644 index 000000000..28eb4dddb --- /dev/null +++ b/aur/despotify-svn/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: Alexander Rødseth + +pkgname=despotify-svn +pkgver=521 +pkgrel=1 +pkgdesc="Console client for Spotify (development version)" +arch=('x86_64' 'i686') +url="http://despotify.sourceforge.net/" +license=('BSD') +depends=('libvorbis' 'openssl' 'libao>=1.1.0' 'mpg123') +makedepends=('subversion' 'ncurses' 'libtool' 'expat') +conflicts=('despotify-pulse-svn' 'despotify-ao-svn') +install=despotify.install +_svntrunk=https://despotify.svn.sourceforge.net/svnroot/despotify +_svnmod=despotify + +build() { + cd "$srcdir" + + if [ -d "$_svnmod/.svn" ]; then + (cd "$_svnmod" && svn up -r "$pkgver") + else + svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod" + fi + msg "SVN checkout done or server timeout" + cd "$_svnmod/src" + + msg2 "Configuring..." + + # Use libao + sed -i 's/gstreamer/libao/' Makefile.local.mk.dist + cp Makefile.local.mk.dist Makefile.local.mk + + # anti-segfault fix, adding format.matrix = NULL; to libao.c + sed -i 's/_LITTLE;/_LITTLE; format.matrix = NULL;/' \ + clients/despotify/libao.c + + msg2 "Compiling..." + make +} + +package() { + cd "$_svnmod/src" + + # The installer fails to make these directories + mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/include" + + # Install to the pkgdir + make INSTALL_PREFIX="$pkgdir/usr" DESTDIR="$pkgdir/" install + + # Shouldn't be executable, fixing + chmod -x "$pkgdir/usr/include/despotify.h" +} + +# vim:set ts=2 sw=2 et: diff --git a/aur/despotify-svn/despotify.install b/aur/despotify-svn/despotify.install new file mode 100644 index 000000000..52f9f0343 --- /dev/null +++ b/aur/despotify-svn/despotify.install @@ -0,0 +1,11 @@ +post_upgrade() { + echo 'NOTE:' + echo 'If you use PulseAudio and get no sound, try as root:' + echo 'setconf /etc/libao.conf default_driver pulse' +} + +post_install() { + post_upgrade +} + +# vim:set ts=2 sw=2 et: