blob: 83282982c7399f3a58827fee4d538ef28bb3270d (
plain)
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
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=icecast
pkgver=2.3.3
pkgrel=5
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"
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 --prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
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="2b5d1b40778922e5f6431b7758c359ad icecast-2.3.3.tar.gz
d65fe756a3811e21fd8327ec599206c8 conf-change-owner.patch
9860c914e30d0cfac45eef4cc4e81535 icecast.initd
37ceeb26f61551e712364a2dffa8c208 icecast.confd"
|