blob: e4f187157505cf434cbe7a47962c0ff2b48a3104 (
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
|
# Maintainer: OSAMC <https://github.com/osam-cologne/archlinux-proaudio>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot de>
# Contributor: Sam Mulvey <archlinux at sammulvey.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Ganjolinux aka Basalari David <ganjolinux@gmail.com>
# Contributor: speps <speps at aur dot archlinux dot org>
# Contributor: B3l3tte <ouack23 at yahoo.fr>
pkgname=darkice
pkgver=1.5
pkgrel=1
pkgdesc='Reads live audio from backends, encodes it and streams it to a server'
arch=(aarch64 armv6h armv7h x86_64)
url='http://www.darkice.org/'
license=(GPL-3.0-or-later)
depends=(gcc-libs glibc)
makedepends=(alsa-lib faac flac jack lame libpulse libsamplerate libvorbis twolame opus)
source=("$pkgname-$pkgver.tar.gz::https://github.com/rafael2k/$pkgname/archive/refs/tags/v$pkgver.tar.gz"
'darkice@.service')
sha256sums=('2025b55f122ea4e9795b918cfeef84048b8c03eef513319eecce3bd141f4f0fc'
'7c65f92c885ed7e141d3289fd8e108dc3d7c19d5c4b3f948e7ce3ad6c653cd12')
build() {
cd $pkgname-$pkgver/darkice/trunk
export CXXFLAGS="$CXXFLAGS -std=c++11"
./autogen.sh \
--prefix=/usr \
--sysconfdir=/etc \
--with-alsa \
--with-faac \
--with-jack \
--with-lame \
--with-opus \
--with-twolame \
--without-aacplus \
--with-pulseaudio \
--with-samplerate
make
}
package() {
depends+=(libmp3lame.so libogg.so libvorbis.so libvorbisenc.so libopus.so
libFLAC.so libfaac.so libtwolame.so libasound.so libpulse-simple.so
libpulse.so libjack.so libsamplerate.so)
cd $pkgname-$pkgver/darkice/trunk
make DESTDIR="$pkgdir" install
# systemd service
install -Dm644 "$srcdir"/darkice@.service -t "$pkgdir"/usr/lib/systemd/user
}
|