Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [WIP] New package: snapcast-0.16.0
@ 2019-10-19 11:23 voidlinux-github
  2019-10-19 11:38 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: voidlinux-github @ 2019-10-19 11:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]

There is a new pull request by amak79 against master on the void-packages repository

https://github.com/amak79/void-packages snapcast
https://github.com/void-linux/void-packages/pull/15614

[WIP] New package: snapcast-0.16.0
This pull request is currently set to WIP because snapserver fails to build without boost 1.70.

A patch file from https://github.com/void-linux/void-packages/pull/15614.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-snapcast-15614.patch --]
[-- Type: text/x-diff, Size: 3958 bytes --]

From 865566de5793c3d52028a05a0261606dcd74f026 Mon Sep 17 00:00:00 2001
From: amak <amak.git@outlook.com>
Date: Sat, 19 Oct 2019 22:09:30 +1100
Subject: [PATCH] New package: snapcast-0.16.0

---
 common/options.description            |  1 +
 srcpkgs/snapcast/files/snapclient/run |  4 +++
 srcpkgs/snapcast/files/snapserver/run |  4 +++
 srcpkgs/snapcast/template             | 47 +++++++++++++++++++++++++++
 srcpkgs/snapclient                    |  1 +
 srcpkgs/snapserver                    |  1 +
 6 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/snapcast/files/snapclient/run
 create mode 100644 srcpkgs/snapcast/files/snapserver/run
 create mode 100644 srcpkgs/snapcast/template
 create mode 120000 srcpkgs/snapclient
 create mode 120000 srcpkgs/snapserver

diff --git a/common/options.description b/common/options.description
index 5d34d2f4068..48f36a4e315 100644
--- a/common/options.description
+++ b/common/options.description
@@ -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)"
diff --git a/srcpkgs/snapcast/files/snapclient/run b/srcpkgs/snapcast/files/snapclient/run
new file mode 100644
index 00000000000..dc94a759487
--- /dev/null
+++ b/srcpkgs/snapcast/files/snapclient/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+
+exec chpst -u snapclient:audio snapclient ${OPTS}
diff --git a/srcpkgs/snapcast/files/snapserver/run b/srcpkgs/snapcast/files/snapserver/run
new file mode 100644
index 00000000000..63e9bcdfc0d
--- /dev/null
+++ b/srcpkgs/snapcast/files/snapserver/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+
+exec chpst -u snapserver:snapserver snapserver ${OPTS}
diff --git a/srcpkgs/snapcast/template b/srcpkgs/snapcast/template
new file mode 100644
index 00000000000..56ade20c1a0
--- /dev/null
+++ b/srcpkgs/snapcast/template
@@ -0,0 +1,47 @@
+# Template file for 'snapcast'
+pkgname=snapcast
+version=0.16.0
+revision=1
+build_style=cmake
+configure_args="-DBUILD_WITH_TREMOR=OFF -DBUILD_SERVER=OFF
+ -DBUILD_WITH_AVAHI=$(vopt_if avahi ON OFF)"
+hostmakedepends="pkg-config"
+makedepends="alsa-lib-devel boost-devel libflac-devel libvorbis-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=a910dd3edd401ef085827a8880454ee48c5b9cd0d1412363fd22a128b4e06f6d
+
+build_options="avahi"
+
+post_install() {
+	vdoc README.md
+	vdoc doc/player_setup.md
+}
+
+snapclient_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc="${_desc} - client files"
+	system_accounts="snapclient"
+	pkg_install() {
+		vmove /usr/bin/snapclient
+		vman client/snapclient.1
+		vsv snapclient
+	}
+}
+
+snapserver_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc="${_desc} - server files"
+	system_accounts="snapserver"
+	snapserver_homedir="/var/lib/snapserver"
+	make_dirs="/var/lib/snapserver 0750 snapserver snapserver"
+	pkg_install() {
+#		vmove /usr/bin/snapserver
+		vman server/snapserver.1
+		vsv snapserver
+	}
+}
diff --git a/srcpkgs/snapclient b/srcpkgs/snapclient
new file mode 120000
index 00000000000..f94c7e9814f
--- /dev/null
+++ b/srcpkgs/snapclient
@@ -0,0 +1 @@
+snapcast
\ No newline at end of file
diff --git a/srcpkgs/snapserver b/srcpkgs/snapserver
new file mode 120000
index 00000000000..f94c7e9814f
--- /dev/null
+++ b/srcpkgs/snapserver
@@ -0,0 +1 @@
+snapcast
\ No newline at end of file

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2020-01-29 22:33 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-19 11:23 [PR PATCH] [WIP] New package: snapcast-0.16.0 voidlinux-github
2019-10-19 11:38 ` [PR PATCH] [Updated] " voidlinux-github
2019-10-19 11:38 ` voidlinux-github
2019-10-20  6:16 ` voidlinux-github
2019-10-20  6:16 ` voidlinux-github
2019-10-20 11:09 ` voidlinux-github
2019-10-20 11:09 ` voidlinux-github
2019-10-24  2:47 ` voidlinux-github
2019-10-24  2:47 ` voidlinux-github
2019-10-24 12:59 ` voidlinux-github
2019-10-24 12:59 ` voidlinux-github
2019-10-26  2:37 ` voidlinux-github
2019-10-26  2:37 ` voidlinux-github
2019-10-28 10:04 ` voidlinux-github
2019-10-28 10:04 ` voidlinux-github
2019-10-31  8:34 ` voidlinux-github
2019-10-31  8:34 ` voidlinux-github
2019-11-05  0:57 ` voidlinux-github
2019-12-27  1:33 ` [PR PATCH] [Updated] [WIP] New package: snapcast-0.17.1 voidlinux-github
2020-01-22 23:27 ` voidlinux-github
2020-01-22 23:36 ` voidlinux-github
2020-01-26  5:17 ` [PR PATCH] [Updated] [WIP] New package: snapcast-0.18.0 voidlinux-github
2020-01-28 23:28 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-29 11:00 ` [PR PATCH] [Updated] New package: snapcast-0.18.1 voidlinux-github
2020-01-29 22:33 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).