mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 21:35:15 +02:00
48 lines
1.5 KiB
Text
48 lines
1.5 KiB
Text
# Contributor: Alex McGrath <amk@amk.ie>
|
|
# Maintainer: Alex McGrath <amk@amk.ie>
|
|
pkgname=gonic
|
|
pkgver=0.16.4
|
|
pkgrel=4
|
|
pkgdesc="Subsonic compatible music streaming server"
|
|
url="https://github.com/sentriz/gonic"
|
|
arch="all"
|
|
license="GPL-3.0-or-later"
|
|
subpackages="$pkgname-openrc"
|
|
depends="ffmpeg"
|
|
makedepends="go taglib-dev zlib-dev sqlite-dev"
|
|
install="$pkgname.pre-install"
|
|
source="gonic-$pkgver.tar.gz::https://github.com/sentriz/gonic/archive/v$pkgver.tar.gz
|
|
gonic.initd
|
|
gonic.confd
|
|
"
|
|
options="!check" # intermittent test failure
|
|
|
|
export GO111MODULES=on
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
export GOFLAGS="$GOFLAGS -tags=libsqlite3"
|
|
go build -o gonic ./cmd/gonic/gonic.go
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -m755 -D "$srcdir"/$pkgname.initd \
|
|
"$pkgdir"/etc/init.d/$pkgname
|
|
install -m644 -D "$srcdir"/$pkgname.confd \
|
|
"$pkgdir"/etc/conf.d/$pkgname
|
|
install -Dm755 "$builddir"/"$pkgname" \
|
|
"$pkgdir"/usr/bin/"$pkgname"
|
|
|
|
}
|
|
|
|
sha512sums="
|
|
b84492af1f4e91a4f0a631e5c8019175e3636f708dea97b10ee13f1a25e05e7836603b61a999c8b8547b5acaaea4011c37338a755d0b4ce33d1e0806d874db39 gonic-0.16.4.tar.gz
|
|
e8a65612bffd1b62175968cc34a227393364ea6fedd661854bf515cc7306e9266d823544989b671f99beb72b6caf83728fa7c7fd9eedbc85a3e34ea84c1ce269 gonic.initd
|
|
b72e31c0f9f79694736aadb8ca581fdb269e82ece9f2c8e45cdb4edb3e01c7fd140e65c11be65cc242dddb273c8c93fde2af12a32241d7936318f3c3cd73d2ec gonic.confd
|
|
"
|