# Maintainer (Arch): M0Rf30
# Contributor (Arch): Tobias Luther <tobias [at] tonstrom [dot] de>
# Contributor (Arch): GraveDigger
# Contributor (Arch): Gaetan Bisson <bisson@archlinux.org>

pkgname=idjc
pkgver=0.8.9
pkgrel=2
pkgdesc='Powerful yet easy-to-use source-client for individuals interested in streaming live radio shows over the Internet'
url='http://idjc.sourceforge.net/'
license=('GPL2')
arch=('i686' 'x86_64' 'mips64el')
depends=('desktop-file-utils' 'python2' 'dbus-python' 'mutagen' 'jack' 'pygtk' 'vorbis-tools' 'libsndfile' 'libsamplerate' 'glib2' 'lame' 'libmad' 'ffmpeg-compat' 'flac' 'speex' 'libshout-idjc')
optdepends=('patchage' 'qjackctl')
makedepends=('pkgconfig')
install=${pkgname}.install
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"

    export PYTHON=/usr/bin/python2
    PKG_CONFIG_PATH+="/usr/lib/ffmpeg-compat/pkgconfig"
    ./configure \
        --prefix=/usr \
        --libexecdir=/usr/lib \
        --disable-static 
#	--disable-libav
  
    make
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"

    make DESTDIR="${pkgdir}" install

    sed -i 's|#! /usr/bin/python22.7|#! /usr/bin/python2|' ${pkgdir}/usr/bin/idjc
}

md5sums=('99abfe98f13170ab6b1ed17a8f1632e1')