# $Id: PKGBUILD 64367 2012-02-11 23:25:01Z allan $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Kritoke <kritoke@nospam.gmail.com>
# Contributor: Kritoke <kritoke@nospam.gmail.com>

pkgname=xmms-imms
pkgver=3.1.0_rc8
pkgrel=3
pkgdesc="An intelligent playlist plug-in for XMMS that tracks your listening patterns and dynamically adapts to your taste."
arch=(i686 x86_64)
license=("GPL")
url="http://imms.luminal.org/"
depends=('xmms' 'pcre' 'sqlite3' 'taglib' 'glib2' 'sox' 'torch' 'libxss' 'fftw')
replaces=('imms')
source=(http://imms.googlecode.com/files/imms-${pkgver/_/-}.tar.bz2)
md5sums=('31b77cbc2dba334b039c5618bbbf203e')

build() {
  cd $srcdir/imms-${pkgver/_/-}

  if [ $NOEXTRACT -ne 1 ]; then
    autoheader
    aclocal
    autoconf
    ./configure --prefix=/usr --disable-immsremote
  fi

  make || return 1
  mkdir -p $pkgdir/usr/bin
  make prefix=$pkgdir/usr DESTDIR=$startdir/pkg/usr/lib/xmms/General \
	 BMPDESTDIR=$pkgdir/usr/lib/bmp/General install || return 1
}