PKGBUILDs/aur/despotify-svn/PKGBUILD

51 lines
1.1 KiB
Bash
Raw Normal View History

2013-06-04 12:47:42 +00:00
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
pkgname=despotify-svn
pkgver=521
pkgrel=2.1
2013-06-04 12:47:42 +00:00
pkgdesc='Console client for Spotify (development version)'
arch=('x86_64' 'i686')
2013-06-04 12:47:42 +00:00
url='http://despotify.sourceforge.net/'
license=('BSD')
2013-06-04 12:47:42 +00:00
depends=('libvorbis' 'openssl' 'libao' 'mpg123')
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-06-04 12:47:42 +00:00
pkgver() {
cd "$srcdir/despotify"
2013-06-04 12:47:42 +00:00
svnversion | tr -d [A-z]
}
2013-06-04 12:47:42 +00:00
prepare() {
cd "$srcdir/despotify/src"
2013-06-04 12:47:42 +00:00
# Use libao instead of gstreamer
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
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"
make
}
package() {
2013-06-04 12:47:42 +00:00
cd "$srcdir/despotify/src"
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: