2020-01-29 00:25:27 +01:00
|
|
|
# Template file for 'snapcast'
|
|
|
|
pkgname=snapcast
|
|
|
|
version=0.18.1
|
2020-01-30 06:25:40 +01:00
|
|
|
revision=2
|
2020-01-29 00:25:27 +01:00
|
|
|
build_style=cmake
|
|
|
|
configure_args="-DBUILD_WITH_TREMOR=OFF -DBUILD_WITH_AVAHI=$(vopt_if avahi ON OFF)"
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="alsa-lib-devel boost-devel libflac-devel libvorbis-devel
|
|
|
|
opus-devel $(vopt_if avahi avahi-libs-devel)"
|
|
|
|
short_desc="Synchronous multi-room audio player"
|
|
|
|
maintainer="amak <amak.git@outlook.com>"
|
|
|
|
license="GPL-3.0-or-later"
|
|
|
|
homepage="https://github.com/badaix/snapcast"
|
|
|
|
distfiles="https://github.com/badaix/snapcast/archive/v${version}.tar.gz"
|
|
|
|
checksum=425afb7e24768ca08c247dc394aaa25fd2a6886e6789e18c6f024eabd7e0f688
|
|
|
|
|
|
|
|
build_options="avahi"
|
|
|
|
|
2020-02-08 17:22:55 +01:00
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
|
|
makedepends+=" libatomic-devel"
|
|
|
|
fi
|
2020-01-29 00:25:27 +01:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vdoc README.md
|
|
|
|
vdoc doc/player_setup.md
|
|
|
|
}
|
|
|
|
|
|
|
|
snapclient_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" - client files"
|
|
|
|
|
|
|
|
system_accounts="_snapclient"
|
|
|
|
_snapclient_homedir="/var/lib/snapclient"
|
|
|
|
make_dirs="/var/lib/snapclient 0750 _snapclient _snapclient"
|
|
|
|
|
|
|
|
pkg_install() {
|
|
|
|
vmove /usr/bin/snapclient
|
|
|
|
vman client/snapclient.1
|
|
|
|
vsv snapclient
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
snapserver_package() {
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc+=" - server files"
|
|
|
|
|
|
|
|
system_accounts="_snapserver"
|
|
|
|
_snapserver_homedir="/var/lib/snapserver"
|
|
|
|
make_dirs="/var/lib/snapserver 0750 _snapserver _snapserver"
|
|
|
|
conf_files="/etc/snapserver.conf"
|
|
|
|
|
|
|
|
pkg_install() {
|
|
|
|
vmove /usr/bin/snapserver
|
|
|
|
vman server/snapserver.1
|
|
|
|
vconf server/etc/snapserver.conf
|
|
|
|
vsv snapserver
|
|
|
|
}
|
|
|
|
}
|