diff options
author | 2024-04-07 23:04:26 +0100 | |
---|---|---|
committer | 2024-04-07 23:04:26 +0100 | |
commit | 8b11be265b148e7f331ef695fcb24c0d80d43c6d (patch) | |
tree | 8f066ebcab61cf18b71de7905fe049d4653f9ecd /media-sound | |
parent | revbump kokua (diff) | |
download | lmiphay-8b11be265b148e7f331ef695fcb24c0d80d43c6d.tar.gz lmiphay-8b11be265b148e7f331ef695fcb24c0d80d43c6d.tar.bz2 lmiphay-8b11be265b148e7f331ef695fcb24c0d80d43c6d.zip |
latest squeezelite - work in progress
Signed-off-by: Paul Healy <lmiphay@gmail.com>
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/squeezelite/Manifest | 2 | ||||
-rw-r--r-- | media-sound/squeezelite/files/squeezelite.service | 12 | ||||
-rw-r--r-- | media-sound/squeezelite/squeezelite-2.0.1481.ebuild | 103 |
3 files changed, 117 insertions, 0 deletions
diff --git a/media-sound/squeezelite/Manifest b/media-sound/squeezelite/Manifest index db2204a..0454dd0 100644 --- a/media-sound/squeezelite/Manifest +++ b/media-sound/squeezelite/Manifest @@ -8,4 +8,6 @@ AUX squeezelite-1.9.4.1182-gentoo-optional-codecs-decode.patch 2205 BLAKE2B 8777 AUX squeezelite-1.9.4.1182-gentoo-optional-codecs.patch 1789 BLAKE2B 33fa43d44a7c2a612863c317a6244dfe0199e496dea349822991093bece435bfa4c25349f69d263fa53828058693b1b632cd216ca5fe1243a78238457e195174 SHA512 5adc75cf66b07fcee0faf6e9f8d46623ec76ae0c091fad975ab0acbaa25da9648806d7c3cb3e55e9eef8ad5088b8f2d95c70b0d85966316035f7a5711c8a0a43 AUX squeezelite.conf.d 450 BLAKE2B 5f33c0e97795965ce719999d9fe7d688cf04e2291a4302b21c8e909d07d40dba9210bacdc5041ee1fa482d14362cfdbc3e276d3789e1d1d93456f33509cfe0f7 SHA512 7aa116553cba1d370233db1b9500c73738c54995c739167c1a54a4ddcb3616bec536280f057a2ca5a17b53b4a9ebe4baabb42bfb449eb1d7bff8d18c82a85d3c AUX squeezelite.init.d 593 BLAKE2B 7ac5449c3a5b830253c7e7ba619eb8c70f074f0dc67e01dbeaa09917b84b48d7fd1d1418f4cbe17e4b5f167f3bd06c54ab7045ebf6c8c5d38b73341e3a70adfc SHA512 303e48c4446135d2d7c0cdd24176114af543d372bbd7b281ccdd01e9cab7cf670b7aada94310a342c8d24f8ac3987d4aa1a211755a5ddab4a86840c043a89ce8 +AUX squeezelite.service 215 BLAKE2B b41608e9fcf267efa84373271509183e336c815eb2e7d199ea31aee9cba608f2e2aa96ec067e329b47583575be6d17362fdcbc23349e87ae189b981586a312cb SHA512 97effbaefee37720aab3e1938ba8b627a9f7b218b5eb747121819bcf1c344e0f84cb6c1518938f3f83118781479ad8f226d90bff96fd1dcef1888df858cc819d EBUILD squeezelite-1.9.4.1182.ebuild 2922 BLAKE2B 0ade30862c31feb76ea40bf2fd00b94d33256ae9268809fce00b17fe1e52f0010f2fb95f2370cff31f32b006ece744e6edb78dbb4a1d43419fe76a773f11b2b7 SHA512 70726888694813f338a1f96477f7b8136e00eaa4c6b2646f6274045b04d2224f312e29a55d8e597660b05930cab86660e084efa7ef605353e600e9bf8f1acdbf +EBUILD squeezelite-2.0.1481.ebuild 2521 BLAKE2B 2bb8ac6459a20b1986d41d61d4e209a2acbb7c4abd1063db88dba1552d8c13a87a888abce1b55cfe19e293039770555d58688d9cba8c72b4228b7e85a3e8900a SHA512 29a645492e65e36f0c99eb37df7ce2e0509f3dd975aa04bf742742ddd1d7c766f8f9ecd986af93eb15e982db0a52610a907135dbe325cdb10df9346a42634d6a diff --git a/media-sound/squeezelite/files/squeezelite.service b/media-sound/squeezelite/files/squeezelite.service new file mode 100644 index 0000000..2dae2bb --- /dev/null +++ b/media-sound/squeezelite/files/squeezelite.service @@ -0,0 +1,12 @@ +[Unit] +Description=Lightweight headless Squeezebox emulator +After=network-online.target + +[Service] +Type=simple +User=squeezelite +ExecStart=/usr/bin/squeezelite -o default -n %H + +[Install] +WantedBy=multi-user.target + diff --git a/media-sound/squeezelite/squeezelite-2.0.1481.ebuild b/media-sound/squeezelite/squeezelite-2.0.1481.ebuild new file mode 100644 index 0000000..d9941a9 --- /dev/null +++ b/media-sound/squeezelite/squeezelite-2.0.1481.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic git-r3 systemd + +DESCRIPTION="Lightweight headless squeezebox client emulator" +HOMEPAGE="https://github.com/ralph-irving/squeezelite" + +EGIT_REPO_URI="https://github.com/ralph-irving/squeezelite.git" +EGIT_COMMIT="c751ef146265c243cdbd7c0353dd0b70ab51730c" +# see VERSION #def in squeezelite.h + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="aac dsd ffmpeg flac mad mpg123 pulseaudio resample visexport vorbis" + +# ffmpeg provides alac and wma codecs +DEPEND="media-libs/alsa-lib + flac? ( media-libs/flac ) + ffmpeg? ( media-video/ffmpeg ) + vorbis? ( media-libs/libvorbis ) + mad? ( media-libs/libmad ) + mpg123? ( media-sound/mpg123 ) + aac? ( media-libs/faad2 ) + resample? ( media-libs/soxr ) + visexport? ( media-sound/jivelite ) + pulseaudio? ( media-plugins/alsa-plugins[pulseaudio] ) +" +RDEPEND="${DEPEND} + media-sound/alsa-utils" + +# OPT_ALAC = -DALAC +# OPT_IR = -DIR +# OPT_GPIO = -DGPIO +# OPT_RPI = -DRPI +# OPT_OPUS = -DOPUS +# OPT_SSL = -DUSE_SSL +# OPT_NOSSLSYM = -DNO_SSLSYM +# OPT_PORTAUDIO = -DPORTAUDIO +# OPT_PULSEAUDIO = -DPULSEAUDIO + +src_compile() { + export OPTS="" + + if use dsd; then + OPTS+=" -DDSD" + einfo "dsd support enabled via dsd2pcm" + fi + + if use ffmpeg; then + OPTS+=" -DFFMPEG" + einfo "alac and wma support enabled via ffmpeg" + fi + + if use resample; then + OPTS+=" -DRESAMPLE" + einfo "resample support enabled via soxr" + fi + + if use visexport; then + OPTS+=" -DVISEXPORT" + einfo "audio data export to jivelite support enabled" + fi + + if ! use mad; then + OPTS+=" -DSL_NO_MAD" + fi + if ! use mpg123; then + OPTS+=" -DSL_NO_MPG123" + fi + if ! use mad && ! use mpg123; then + einfo "MP3 support disabled; add 'mad' (recommended)" + einfo " or 'mpg123' USE flag if you need it" + fi + if ! use aac; then + OPTS+=" -DNO_FAAD" + einfo "AAC support disabled; add 'aac' USE flag if you need it" + fi + + # Build it + emake || die "emake failed" +} + +src_install() { + dobin squeezelite + dobin ${FILESDIR}/pasqueezelite + dodoc LICENSE.txt + + newconfd "${FILESDIR}/${PN}.conf.d" "${PN}" + newinitd "${FILESDIR}/${PN}.init.d" "${PN}" + + systemd_dounit "${FILESDIR}"/${PN}.service +} + +pkg_postinst() { + elog "If you want start Squeezelite automatically on system boot:" + elog " rc-update add squeezelite default" + elog "Edit /etc/cond.d/squeezelite to customise -- in particular" + elog "you may want to set the audio device to be used." +} |