#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=libshout
pkgver=2.4.1
pkgrel=1gv
source=("http://downloads.us.xiph.org/releases/libshout/libshout-$pkgver.tar.gz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://www.icecast.org

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libshout (communicate/broadcast to Icecast streaming media servers)"
"libshout allows applications to easily communicate and broadcast to an"
"Icecast streaming media server. It handles the socket connections,"
"metadata communication, and data streaming for the calling"
"application, and lets developers focus on feature sets instead of"
"implementation details."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--disable-static \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
	mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver
	mv $startdir/pkg/usr/share/doc/$pkgname/* $startdir/pkg/usr/doc/$pkgname-$pkgver
	rm -rf $startdir/pkg/usr/share/doc
}