blob: f3d1c61afb4e27bf8aabb818ec2fb5a4273b0865 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Marvin Steadfast <marvin@xsteadfastx.org>
pkgname=snapcast
pkgver=0.15.0
pkgrel=0
pkgdesc="Synchronous multi-room audio player"
url="https://github.com/badaix/snapcast"
arch="all"
license="GPL-3.0"
depends="$pkgname-client $pkgname-server"
makedepends="asio-dev bash avahi-dev flac-dev
libvorbis-dev alsa-lib-dev aixlog popl
"
pkgusers="$pkgname"
pkggroups="$pkgname audio"
install="$pkgname-client.pre-install $pkgname-server.pre-install"
subpackages="$pkgname-doc $pkgname-client $pkgname-server"
source="snapcast-$pkgver.tar.gz::https://github.com/badaix/snapcast/archive/v$pkgver.tar.gz
$pkgname-client.initd
$pkgname-client.confd
$pkgname-server.initd
$pkgname-server.confd
"
builddir="$srcdir/snapcast-$pkgver"
build() {
cd "$builddir"
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" installclient installserver
}
client() {
pkgdesc="$pkgname client"
install_if="$pkgname-$pkgver-r$pkgrel"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/snapclient \
"$subpkgdir"/usr/bin/
install -Dm755 "$srcdir"/"$subpkgname.initd" \
"$subpkgdir"/etc/init.d/"$subpkgname"
install -Dm644 "$srcdir"/"$subpkgname.confd" \
"$subpkgdir"/etc/conf.d/"$subpkgname"
}
server() {
pkgdesc="$pkgname server"
install_if="$pkgname-$pkgver-r$pkgrel"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/snapserver \
"$subpkgdir"/usr/bin/
install -Dm755 "$srcdir"/"$subpkgname.initd" \
"$subpkgdir"/etc/init.d/"$subpkgname"
install -Dm644 "$srcdir"/"$subpkgname.confd" \
"$subpkgdir"/etc/conf.d/"$subpkgname"
}
check() {
cd "$builddir"
client/snapclient --help > /dev/null
server/snapserver --help > /dev/null
}
sha512sums="3751eeaa9be4ffd5c7633b8770f36e87360ab83004f090a8350e377f60a79d9502b92b92c5c9c35f513705e6484d113de9942f0a896824d7c5f806ba0010e84e snapcast-0.15.0.tar.gz
d1c4d8693b708981703b13c496226c12800d3808b9362959839c85732b56171708d75dac708acf98548f110d22dcd3c1a046dbf39a5f6454bfd8978d7bca354e snapcast-client.initd
fa353d7974d3a8b3b22ff009b762c7c4ee318f9f83e22762a9ebf550484b9fc3cc4dffd389b6d756630dc035cb86d5c5643541957785f8bbf71fe4915691c337 snapcast-client.confd
0f6c43e267646ff657bfe184481c7148d3395a6ed2b9c485856b56370dcb5a1d2364f856af683d9af13fc12b8687ba890345673311caabefa09c9471e7b5cf48 snapcast-server.initd
48d494143d044a413b414b32cd8be51d4242234b6d7cb03102914a42b1ea6b1913c2c31b223c23c6be316918e731875149a2505daa03165659d0a1be3ca7e75c snapcast-server.confd"
|