#Packager: Dimitris Jemos <djemos~at~slackel~dot~gr>

pkgname=icecast
pkgver=2.3.2
pkgrel=1dj
source=(http://downloads.xiph.org/releases/icecast/$pkgname-$pkgver.tar.gz)
docs=("AUTHORS" "HACKING" "COPYING" "ChangeLog" "NEWS" "README" "TODO")
options=('noautodotnew')
url=http://www.icecast.org


slackdesc=\
(
 #|-----handy-ruler------------------------------------------------------|
   "Icecast is a streaming media server which currently supports Ogg"
   "streaming including the vorbis and theora codecs. Also icecast can"
   "handle other streams like MP3/AAC/NSV."
   "It can be used to create an Internet radio station or a privately"
   "running jukebox and many things in between. It is very versatile in"
   "that new formats can be added relatively easily and supports open"
   "standards for communication and interaction."
)

build() {
        cd $startdir/src/$pkgname-$pkgver || return 1
        CFLAGS="$SLKCFLAGS" \
        CXXFLAGS="$SLKCFLAGS" \
        ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc 
                
        make || return 1
        make install DESTDIR=$startdir/pkg || return 1
        mkdir -p $startdir/pkg/var/log/icecast || return 1
        chown -R  nobody:nogroup $startdir/pkg/var/log/icecast || return 1
   	           
}