-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New package: navidrome 0.61.1 #59763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #!/usr/bin/env sh | ||
|
|
||
| exec 2>&1 | ||
|
|
||
| [ -r ./conf ] && . ./conf | ||
|
|
||
| export ND_CONFIGFILE=/var/lib/navidrome/navidrome.toml | ||
| exec chpst -u _navidrome:_navidrome navidrome | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,32 @@ | ||||||
| # Template file for 'navidrome' | ||||||
| pkgname=navidrome | ||||||
| version=0.61.1 | ||||||
| revision=1 | ||||||
| build_style=go | ||||||
| go_import_path=github.com/navidrome/navidrome | ||||||
| go_ldflags=" -X github.com/navidrome/navidrome/consts.gitSha=e7c7cba87374ebe1bace57271bc5e8cf731b7a6e -X github.com/navidrome/navidrome/consts.gitTag=v${version}" | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Things like the commit will end up being outdated, either don't set it or set it to the version. |
||||||
| go_build_tags="netgo,sqlite_fts5" | ||||||
| hostmakedepends="nodejs pkg-config sqlite-devel taglib-devel" | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||
| depends="ffmpeg" | ||||||
| short_desc="Your personal streaming service" | ||||||
| maintainer="micro80 <me@micro80.com>" | ||||||
| license="GPL-3.0-only" | ||||||
| homepage="https://www.navidrome.org" | ||||||
| checksum=68273cf2a8938a167d68fd6c6b341f0e06c1f23acfca83698f5673048f9beaae | ||||||
| distfiles="https://github.com/navidrome/navidrome/archive/refs/tags/v${version}.tar.gz" | ||||||
|
|
||||||
| system_accounts="_navidrome" | ||||||
| _navidrome_homedir="/var/lib/navidrome" | ||||||
| make_dirs="/var/lib/navidrome 0755 _navidrome _navidrome" | ||||||
|
|
||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| pre_build() { | ||||||
| npm --prefix ./ui ci | ||||||
| npm --prefix ./ui run build | ||||||
| } | ||||||
|
|
||||||
| post_install() { | ||||||
| vlicense LICENSE | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this is GPL, the license file doesn't need to be installed. |
||||||
| vmkdir var/lib/navidrome | ||||||
| vcopy release/linux/navidrome.toml var/lib/navidrome/navidrome.toml | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| vsv navidrome | ||||||
| } | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its always better to match upstream default locations and services (https://github.com/navidrome/navidrome/blob/4570dec675f904aa0cecd09b2c842685b762527e/contrib/navidrome.service#L14). Config files belong in
/etc.