# $Id$ # Maintainer: Alexander Fehr # Contributor: William Rea # Contributor: Gicu Gorodenco pkgname=audacious pkgver=2.1 pkgrel=2 pkgdesc="Media player based on BMP" arch=('i686' 'x86_64') url="http://audacious-media-player.org/" license=('GPL3') depends=('gtk2' 'libmcs' 'dbus-glib' 'libsamplerate' 'libxml2' 'desktop-file-utils' 'audacious-plugins') optdepends=('unzip: Zipped skins support') provides=('audacious-player') replaces=('audacious-player') install=audacious.install source=(http://distfiles.atheme.org/audacious-$pkgver.tgz chardet.c.patch) md5sums=('03ab6a062e5909214841f90f767f1147' '0e52d33c1769b95fccce2df91f66312f') build() { cd "$srcdir/audacious-$pkgver/src/audacious" patch -Np0 -i "$srcdir/chardet.c.patch" || return 1 cd "$srcdir/audacious-$pkgver" if [[ $CARCH == "i686" ]]; then ./configure --prefix=/usr --enable-samplerate --disable-sse2 || return 1 elif [[ $CARCH == "x86_64" ]]; then ./configure --prefix=/usr --enable-samplerate || return 1 fi make || return 1 make DESTDIR="$pkgdir" install || return 1 }