updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / idjc-latest / PKGBUILD
blob1cbae12d89a57bae59c211b934a8092e8c4aeffd
1 # Contributor: Tobias Luther <tobias [at] tonstrom [dot] de>
3 pkgname=idjc-latest
4 pkgver=20110918
5 pkgrel=1
6 pkgdesc="A graphical shoutcast and icecast client that runs under GTK+ and the JACK audio connection kit. In short, it's an Internet radio app for making a live radio show."
7 arch=(i686 x86_64)
8 url="http://idjc.sourceforge.net/"
9 depends=('python' 'jack' 'pygtk' 'lame' 'mutagen' 'flac' 'faad2' 'libsamplerate' 'libshout' 'vorbis-tools' 'libsndfile' 'ffmpeg' 'libmad' 
10 'speex')
11 makedepends=('pkgconfig' 'git')
12 optdepends=('patchage' 'qjackctl')
13 conflicts=('idjc')
14 source=(patch)
15 _gitroot="git://idjc.git.sourceforge.net/gitroot/idjc/idjc"
16 _gitname="idjc"
18 md5sums=('eeb2c55443f753f9244eaac006cce132')
19 license=('GPLv3')
21 build()
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot $_gitname
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone -l "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
38         
39         
40         ./env-up  &&  patch -Np1 -i ../patch
41         ./configure --prefix=/usr CFLAGS="-O2" PYTHON="/usr/bin/python2"
42               make || return 1
43                 make DESTDIR=$pkgdir install