aboutsummaryrefslogtreecommitdiffstats
path: root/main/darkice/APKBUILD
blob: 3a3a444e07721cc32f1f9d848c5ce7640a9cb9b8 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=darkice
pkgver=1.3
pkgrel=0
pkgdesc="Live audio streamer. Records audio from an audio interface, encodes it and sends it to a streaming server"
url="http://www.darkice.org/"
arch="all"
license="GPL-3.0"
depends=
makedepends="alsa-lib-dev faac-dev lame-dev libvorbis-dev"
install=""
subpackages="$pkgname-doc"
source="https://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
	darkice.initd
	darkice.confd"

builddir=$srcdir/$pkgname-$pkgver

build() {
	cd "$builddir"
	CPPFLAGS="$CPPFLAGS -fpermissive" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/darkice \
		--without-aacplus \
		--without-twolame
	make
}
package() {
	mkdir -p "$pkgdir"/etc/$pkgname
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

sha512sums="710dde580005e999e9b11981affdefab6c01868710e9de29d93fb0f40db3321dfe3ab6ed2dc1887bb22ac9a0789fe1648d948f4453c92feb312f7af97c253674  darkice-1.3.tar.gz
743f4e24bf4bfa57a46f643dc000cd40f24e382e50c657bb6bb2a13492e337bbec5b1c03e0824046e30725737bdf81ce838bc61cd4b3b383b013e6bcad9475c6  darkice.initd
9491c3d0ff34750a60cec93eeaa7442714209fdb085e4d4d47a15b991850c861f0003d446d1a3205b452c9badc68b34beafd6c37798a3744098a3665f7f34f34  darkice.confd"