aboutsummaryrefslogtreecommitdiffstats
path: root/main/darkice/APKBUILD
blob: bb4e7862c160a38940cfb8ff27203e3c7c39047f (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=darkice
pkgver=1.1
pkgrel=0
pkgdesc="Live audio streamer. Records audio from an audio interface, encodes it and sends it to a streaming server"
url="http://code.google.com/p/darkice/"
arch="all"
license="GPL3"
depends=
depends_dev="alsa-lib-dev faac-dev lame-dev libvorbis-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://darkice.googlecode.com/files/$pkgname-$pkgver.tar.gz
	darkice.initd
	darkice.confd"

_builddir=$srcdir/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/darkice \
		--without-aacplus \
		--without-twolame \
		|| return 1
	make || return 1
}
package() {
	mkdir -p "$pkgdir"/etc/$pkgname
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
md5sums="723ab45fcb3ba4d38a586719b26beb5a  darkice-1.1.tar.gz
9afe1b3d2046261d38814abc8304152b  darkice.initd
8aaa2212a0e6eff3922e0dba7fab4028  darkice.confd"