aboutsummaryrefslogtreecommitdiffstats
path: root/main/libshout/APKBUILD
blob: 06fa1b1def5c5620067da23fe5af4131c9957bb0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libshout
pkgver=2.4.5
pkgrel=2
pkgdesc="Library for accessing a shoutcast/icecast server"
url="https://icecast.org/"
arch="all"
license="GPL-2.0-only"
makedepends="speex-dev libtheora-dev libvorbis-dev openssl1.1-compat-dev"
subpackages="$pkgname-static $pkgname-doc $pkgname-dev"
source="http://downloads.xiph.org/releases/libshout/libshout-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

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

check() {
	make check
}

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

sha512sums="290844185da16961f03434d3e341573dd6cb0139e5fa81902903021b641382d2629302d7c356bc591b35656754e07f4e44a8d9e782e092b17a051b9ae8f54341  libshout-2.4.5.tar.gz"