New package: snapcast-0.18.1
This commit is contained in:
parent
978f50f4ad
commit
8bacddc603
|
@ -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)"
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
[ -r conf ] && . ./conf
|
||||
exec chpst -u _snapclient:audio snapclient ${OPTS}
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
[ -r conf ] && . ./conf
|
||||
exec chpst -u _snapserver snapserver ${OPTS}
|
|
@ -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
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
snapcast
|
|
@ -0,0 +1 @@
|
|||
snapcast
|
Loading…
Reference in New Issue