aboutsummaryrefslogtreecommitdiffstats
path: root/main/icecast/APKBUILD
blob: 97a2e537de5b1312350afd67b92c6654e26ecc01 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer:  Francesco Colista <francesco.colista@gmail.com>
pkgname=icecast
pkgver=2.4.2
pkgrel=1
pkgdesc="Open source media server"
url="http://www.icecast.org"
arch="all"
license="GPL"
depends=
install="$pkgname.pre-install"
pkgusers="icecast"
pkggroups="icecast"
makedepends="libxslt-dev libxml2-dev libogg-dev libvorbis-dev libtheora-dev openssl-dev curl-dev"
subpackages="$pkgname-doc"
source="http://downloads.xiph.org/releases/$pkgname/$pkgname-$pkgver.tar.gz
	conf-change-owner.patch
	icecast.initd
	icecast.confd"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	patch -p1 -i "$srcdir"/conf-change-owner.patch
}

build() {
	cd "$srcdir"/$pkgname-$pkgver

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-curl \
		|| return 1

	make
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install
	install -D -m755 ../icecast.initd "$pkgdir"/etc/init.d/icecast
	install -D -m755 ../icecast.confd "$pkgdir"/etc/conf.d/icecast
	install -d -D -o icecast -g icecast "$pkgdir"/var/log/icecast
}

md5sums="55947c83d31dfcbbede58c9521c676f4  icecast-2.4.2.tar.gz
d65fe756a3811e21fd8327ec599206c8  conf-change-owner.patch
a868f60a4bf32716a0e8de46f3f9c876  icecast.initd
37ceeb26f61551e712364a2dffa8c208  icecast.confd"
sha256sums="aa1ae2fa364454ccec61a9247949d19959cb0ce1b044a79151bf8657fd673f4f  icecast-2.4.2.tar.gz
52a85e356192f805a02c6e00375d8a9ebfda8112d9458b19eb183e238d7e54d3  conf-change-owner.patch
6c997c6dbc8bc3c3d2debec6f410983fd6a52465d8c3a2e2ca4a45be8a68d254  icecast.initd
bf0b7596f642cf920f7909af28d7bb632f5616fee8b3c44decd609ab748e164a  icecast.confd"
sha512sums="6fc5a54b97f1efd63f0d3ea17fc7124cb30cfafae70615f5afdf878df9e3f57ca7882757a0691329d63ee4fc7555c695fefa415f2deb955d01244afc4528a260  icecast-2.4.2.tar.gz
3de3ed881a60f99d3e4cf656a46cdb157e95abcfa9bd44ebc7e13840a9b0ee84ec9e5b30878d67e42385dac5fa974694c215ad162b910c47b6b7864d474bf636  conf-change-owner.patch
c78f7e6aa9ff04f7400944e95485994a23493e79d47e0b9799b9235fa5f3ed9d64840be1380a262c30594f9fa2dac96d904226608bfc133d51b3a62ed90d990d  icecast.initd
7e4299b34207bd4323bc89f2d98abebcb62cbeee3b0931d6d18e1c2c736a17e823b07dfb38364f22a375585843a917031beb1b9efe2fff71de036146371536f3  icecast.confd"