void-packages icon indicating copy to clipboard operation
void-packages copied to clipboard

New package: gonic-0.16.4

Open fanyx opened this issue 2 years ago • 15 comments

Testing the changes

  • I tested the changes in this PR: YES

New package

Resolves #44353

fanyx avatar Sep 11 '23 09:09 fanyx

# Template file for 'gonic'
pkgname=gonic
version=0.15.2
revision=1
build_style=go
go_import_path="go.senan.xyz/gonic"
go_package="${go_import_path}/cmd/gonic"
hostmakedepends="pkg-config"
makedepends="
alsa-lib-devel
sqlite-devel
taglib-devel"
depends="ffmpeg"
short_desc="Music streaming server / subsonic server API implementation"
maintainer="Duncaen <[email protected]>"
license="GPL-3.0-or-later"
homepage="https://github.com/sentriz/gonic"
distfiles="https://github.com/sentriz/gonic/archive/v${version}.tar.gz"
checksum=f70580a3bf96b0e9144bfaae07d7f158fc7dc732eba240c191effb9c30d28edc

system_accounts="_gonic"
_gonic_homedir="/var/lib/gonic"
make_dirs="
 /var/cache/gonic       755 _gonic _gonic
 /var/db/gonic          755 _gonic _gonic
 /var/lib/gonic/music   755 _gonic _gonic
 /var/lib/gonic/podcast 755 _gonic _gonic"

post_install() {
        vsv gonic
}

srcpkgs/gonic/files/gonic/run:

#!/bin/sh
[ -r ./conf ] && . ./conf
: ${GONIC_CACHE_PATH:=/var/cache/gonic}
: ${GONIC_DB_PATH:=/var/db/gonic/gonic.db}
: ${GONIC_MUSIC_PATH:=/var/lib/gonic/music}
: ${GONIC_PODCAST_PATH:=/var/lib/gonic/podcast}
export GONIC_CACHE_PATH GONIC_DB_PATH GONIC_MUSIC_PATH GONIC_PODCAST_PATH
exec chpst -u _gonic gonic $OPTS 2>&1

Duncaen avatar Sep 11 '23 11:09 Duncaen

from original repository:

note: unfortunately if you do this above, you'll be compiling gonic locally on your machine (if someone knows how I can statically link sqlite3 and taglib, please let me know so I can distribute static binaries)

I wonder if we could/should move sqlite to runtime dep instead of makedep taglib-devel seems to be necessary to build, though

fanyx avatar Sep 11 '23 11:09 fanyx

I wonder if we could/should move sqlite to runtime dep instead of makedep

No, its not going to even try to link the system sqlite if its not in makedepends.

Duncaen avatar Sep 11 '23 11:09 Duncaen

Are you using this software? Otherwise since I'm using it and have contributed to it I would be open to maintaining it.

Duncaen avatar Sep 11 '23 11:09 Duncaen

I had used it in the past but not anymore. Just saw the package request and figured it wouldn't be too hard to get it templated.

You're very welcome to maintain this, you're a lot more knowledgable anyways :smile: Let me just change back the maintainer field and push again

fanyx avatar Sep 11 '23 12:09 fanyx

I'm currently running gonic as well on aarch64 (not from this PR though).

Anachron avatar Sep 11 '23 21:09 Anachron

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

github-actions[bot] avatar Dec 11 '23 01:12 github-actions[bot]

STOP. This. Auto. Stale. Madness!

Anachron avatar Dec 11 '23 08:12 Anachron

@Duncaen you mentioned wanting to take over this PR. can we close this one and you push your gonic template however you like?

fanyx avatar Dec 11 '23 08:12 fanyx

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

github-actions[bot] avatar Mar 12 '24 01:03 github-actions[bot]

@Duncaen bumping again just for visibility

fanyx avatar Mar 21 '24 15:03 fanyx

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

github-actions[bot] avatar Jun 20 '24 01:06 github-actions[bot]

musl builds fail due to a bug in audiotags dependency Opened a PR on upstream: https://github.com/sentriz/audiotags/pull/1

update: PR is merged, waiting for sentriz to make a new gonic release

fanyx avatar Jun 21 '24 08:06 fanyx

Added GONIC_PLAYLISTS_PATH to service file.

fanyx avatar Jun 23 '24 13:06 fanyx

Ported the musl fix as a patch for now, will drop in next release

fanyx avatar Aug 27 '24 11:08 fanyx

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

github-actions[bot] avatar Nov 26 '24 02:11 github-actions[bot]

bump

fanyx avatar Nov 26 '24 14:11 fanyx

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

github-actions[bot] avatar Feb 26 '25 02:02 github-actions[bot]

I don't think this should go into the void.

Anachron avatar Feb 26 '25 08:02 Anachron

I don't think this should go into the void.

Why? What's wrong with it?

fanyx avatar Feb 26 '25 16:02 fanyx

Oh I mesnt it shouldn't be forgotten/disappear. Sorry I forgot our distro is called void too for a second there. :-D

Anachron avatar Feb 26 '25 19:02 Anachron

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

github-actions[bot] avatar May 28 '25 02:05 github-actions[bot]

bump @Duncaen

fanyx avatar Jun 04 '25 14:06 fanyx