blob: f089449f465d6bb8680101e6430df4a348f9a943 (
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
50
51
52
53
|
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=darkice
pkgver=1.2
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="de541ea95a73a50f2f5e700434c22329 darkice-1.2.tar.gz
9afe1b3d2046261d38814abc8304152b darkice.initd
8aaa2212a0e6eff3922e0dba7fab4028 darkice.confd"
sha256sums="b3fba9be2d9c72f36b0659cd9ce0652c8f973b5c6498407f093da9a364fdb254 darkice-1.2.tar.gz
f9701125336294d2cf751e63e2f829188663c0ee6584c292bc94967bb28321a0 darkice.initd
3c2a970aafb6029c81640a13373c0df2473aba340b2761aa695bda49bb9c402e darkice.confd"
sha512sums="d8959819d70eb9b44a34d087fcf3897be5e4cb23681c049f8d88e251d83dfd86b90fdd37744fe27d861dfcbb6bb6e1521b48c5c7b4967bb061ede75596f0a823 darkice-1.2.tar.gz
d19f9a703e89fa975bf32f1be7824971f3f48965be46c9144dc098185d732954149aa75c43c75940c6bccb3ddfbad9adfc523a99fdd32c82103ea0d3750946e4 darkice.initd
9491c3d0ff34750a60cec93eeaa7442714209fdb085e4d4d47a15b991850c861f0003d446d1a3205b452c9badc68b34beafd6c37798a3744098a3665f7f34f34 darkice.confd"
|