New package: snapcast-0.18.1

This commit is contained in:
amak 2020-01-29 10:25:27 +11:00 committed by Daniel Kolesa
parent 978f50f4ad
commit 8bacddc603
6 changed files with 68 additions and 0 deletions

View File

@ -2,6 +2,7 @@ desc_option_aalib="Enable support for aalib video output"
desc_option_acl="Enable support for ACLs and Extended Attributes"
desc_option_alsa="Enable support for ALSA"
desc_option_aom="Enable support for the AV1 codec"
desc_option_avahi="Enable support for Avahi"
desc_option_backtrace="Enable support for backtraces via libunwind"
desc_option_bluetooth="Enable support for bluetooth"
desc_option_cdparanoia="Enable support for CD audio (cdparanoia)"

View File

@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec chpst -u _snapclient:audio snapclient ${OPTS}

View File

@ -0,0 +1,3 @@
#!/bin/sh
[ -r conf ] && . ./conf
exec chpst -u _snapserver snapserver ${OPTS}

59
srcpkgs/snapcast/template Normal file
View File

@ -0,0 +1,59 @@
# Template file for 'snapcast'
pkgname=snapcast
version=0.18.1
revision=1
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"
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
armv[56]*|mips*|ppc*) makedepends+=" libatomic-devel" ;;
esac
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
}
}

1
srcpkgs/snapclient Symbolic link
View File

@ -0,0 +1 @@
snapcast

1
srcpkgs/snapserver Symbolic link
View File

@ -0,0 +1 @@
snapcast