2013-06-04 12:47:42 +00:00
|
|
|
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
|
2013-02-06 16:53:28 +00:00
|
|
|
|
|
|
|
pkgname=despotify-svn
|
|
|
|
pkgver=521
|
2015-10-16 15:53:17 +00:00
|
|
|
pkgrel=2.1
|
2013-06-04 12:47:42 +00:00
|
|
|
pkgdesc='Console client for Spotify (development version)'
|
2013-02-06 16:53:28 +00:00
|
|
|
arch=('x86_64' 'i686')
|
2013-06-04 12:47:42 +00:00
|
|
|
url='http://despotify.sourceforge.net/'
|
2013-02-06 16:53:28 +00:00
|
|
|
license=('BSD')
|
2013-06-04 12:47:42 +00:00
|
|
|
depends=('libvorbis' 'openssl' 'libao' 'mpg123')
|
2013-02-06 16:53:28 +00:00
|
|
|
makedepends=('subversion' 'ncurses' 'libtool' 'expat')
|
|
|
|
conflicts=('despotify-pulse-svn' 'despotify-ao-svn')
|
2013-06-04 12:47:42 +00:00
|
|
|
install='despotify.install'
|
|
|
|
source=('despotify::svn://svn.code.sf.net/p/despotify/code/')
|
|
|
|
sha256sums=('SKIP')
|
2013-02-06 16:53:28 +00:00
|
|
|
|
2013-06-04 12:47:42 +00:00
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir/despotify"
|
2013-02-06 16:53:28 +00:00
|
|
|
|
2013-06-04 12:47:42 +00:00
|
|
|
svnversion | tr -d [A-z]
|
|
|
|
}
|
2013-02-06 16:53:28 +00:00
|
|
|
|
2013-06-04 12:47:42 +00:00
|
|
|
prepare() {
|
|
|
|
cd "$srcdir/despotify/src"
|
2013-02-06 16:53:28 +00:00
|
|
|
|
2013-06-04 12:47:42 +00:00
|
|
|
# Use libao instead of gstreamer
|
2013-02-06 16:53:28 +00:00
|
|
|
sed -i 's/gstreamer/libao/' Makefile.local.mk.dist
|
|
|
|
cp Makefile.local.mk.dist Makefile.local.mk
|
|
|
|
|
2013-06-04 12:47:42 +00:00
|
|
|
# Anti-segfault fix, add format.matrix = NULL; to libao.c
|
2013-02-06 16:53:28 +00:00
|
|
|
sed -i 's/_LITTLE;/_LITTLE; format.matrix = NULL;/' \
|
|
|
|
clients/despotify/libao.c
|
2013-06-04 12:47:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/despotify/src"
|
2013-02-06 16:53:28 +00:00
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-06-04 12:47:42 +00:00
|
|
|
cd "$srcdir/despotify/src"
|
2013-02-06 16:53:28 +00:00
|
|
|
|
|
|
|
mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/include"
|
|
|
|
make INSTALL_PREFIX="$pkgdir/usr" DESTDIR="$pkgdir/" install
|
|
|
|
chmod -x "$pkgdir/usr/include/despotify.h"
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|