media-sound/navidrome-bin: add 0.52.0

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2024-04-28 20:05:23 +02:00
parent 1c809fb688
commit 692973996c
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 47 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST navidrome_0.51.1_linux_amd64.tar.gz 15018686 BLAKE2B d1c484d041f4a0adc6884815d156c3770d68d7b493dfd351dc0d86417a2108a27af214fd887055412909adbda434ae762c74f82d8589acb847b6aa8c1c650220 SHA512 6da3d9b0b0084d97bf23eaf596552280c012082edf64f173a33282c56f5fe18091e6a6dba1a3a495f18dc937dc5fba505e6eb75e51cf3292d4aa53fec60f7704
DIST navidrome_0.52.0_linux_amd64.tar.gz 15327572 BLAKE2B 642ed8fbe238599d3b5211d519daf6ff3db5c082181a83194029bd12b2b384cffc4bb7d8bacfeb301bebba0f9116e2a62f0f50f130f45fa51e32a5d276fb195a SHA512 94fbceb106f439c71f889ebf3a9f48e4dcea02ac6ef92c97d53dc63ae75b862ea01c78ae2201613debbb5c698448c3feb6c8d33b1225b9bde7bcc2097a77b56b

View File

@ -0,0 +1,46 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd
DESCRIPTION="Music Server and Streamer compatible with Subsonic/Airsonic"
HOMEPAGE="https://www.navidrome.org/"
SRC_URI="https://github.com/navidrome/navidrome/releases/download/v${PV}/navidrome_${PV}_linux_amd64.tar.gz"
S="${WORKDIR}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="taglib"
# TODO: ffmpeg USE-flags?
RDEPEND="
media-video/ffmpeg
taglib? ( media-libs/taglib )
"
BDEPEND="acct-user/navidrome"
src_prepare() {
cat << EOF > navidrome.toml.example
# see <https://www.navidrome.org/docs/usage/configuration-options/#available-options> for more options
# MusicFolder = '/media/music'
EOF
default
}
src_install() {
dobin navidrome
dodoc README.md
insinto /var/lib/navidrome
doins navidrome.toml.example
fowners -R navidrome:navidrome /var/lib/navidrome
keepdir /var/log/navidrome
fowners navidrome:navidrome /var/log/navidrome
systemd_dounit "${FILESDIR}"/navidrome.service
newinitd "${FILESDIR}"/navidrome.initd navidrome
}