Skip to content

Commit

Permalink
New package: gonic-0.16.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyx committed Jun 21, 2024
1 parent 78c7a78 commit 2c481e2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
8 changes: 8 additions & 0 deletions srcpkgs/gonic/files/gonic/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/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
28 changes: 28 additions & 0 deletions srcpkgs/gonic/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Template file for 'gonic'
pkgname=gonic
version=0.16.4
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=ba690a861a075bdf3f1f7e8131e45a5ca430ec90902a97faf955ec9f36799461

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
}

0 comments on commit 2c481e2

Please sign in to comment.