# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: 
pkgname=libshout
pkgver=2.4.3
pkgrel=0
pkgdesc="Library for accessing a Icecast server"
url="https://www.icecast.org/"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.0+"
depends=""
makedepends="speex-dev libtheora-dev libvorbis-dev openssl-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="https://downloads.xiph.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
         make LDFLAGS+=-lspeex
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="fe36778c6640e620f27504cb21234940e18a65a33f9178bf7e77d4baf854a9affc82d85db8ed8c1c8e2d80399685d8be10106fff5be1ddf76e03e2ffeeed1d34  libshout-2.4.3.tar.gz"