# Contributor: Lionel Voirol <lionel@sinux.ch>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=ezstream
pkgver=0.6.0
pkgrel=0
pkgdesc="Ezstream is a command line source client for Icecast media streaming servers."
url="http://www.icecast.org/ezstream.php"
arch="all"
license="GPL-2.0"
depends=""
depends_dev=""
makedepends="$depends_dev libshout-dev libxml2-dev libvorbis-dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.xiph.org/releases/ezstream/ezstream-$pkgver.tar.gz"

builddir=$srcdir/$pkgname-$pkgver

prepare() {
	default_prepare || return 1
	update_config_guess || return 1
}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="913fffa04a5631e5f9d0ee19945045a4  ezstream-0.6.0.tar.gz"
sha256sums="f86eb8163b470c3acbc182b42406f08313f85187bd9017afb8b79b02f03635c9  ezstream-0.6.0.tar.gz"
sha512sums="d6b621db85a0d56dcc54a8b7a0136c25342ec507f04ab397a53f46a74e85e94806e17d0a0a59e66096b5c0d97b7f98eaba95a50c1ca6c8d82aed11b854d0d33d  ezstream-0.6.0.tar.gz"
