blob: d33b3f9e598c28d6da15c816ef31cb4d71108aec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Dimitri Pertin <pertin (dot) dimitri (at) protonmail (dot) com>
pkgname=gonic
pkgver=0.8.4
pkgrel=1
pkgdesc='A lightweight music streaming server which implements the Subsonic API'
arch=('x86_64')
depends=('gcc-libs' 'sqlite' 'taglib')
makedepends=('go')
optdepends=('ffmpeg: on-the-fly audio transcoding and caching')
url='https://github.com/sentriz/gonic'
license=('GPL3')
backup=("usr/lib/systemd/system/$pkgname.service")
source=("$pkgname-$pkgver.tar.gz::https://github.com/sentriz/gonic/archive/v$pkgver.tar.gz"
"$pkgname.service"
"$pkgname.sysusers"
"$pkgname.tmpfiles")
md5sums=('101f627184c59a01162ccd02a7628e90'
'ba8a59387a281b19cc4c09916e5fe731'
'6ca6715be2cdd424846f7b37b98905f6'
'487fe9a172e33d86514cf3dbb3b629b8')
build() {
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-trimpath"
cd "$srcdir/$pkgname-$pkgver"
./_do_build_server
./_do_build_scanner
}
package() {
install -Dm644 "$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
install -Dm644 "$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -Dm644 "$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 ${pkgname} "$pkgdir/usr/bin/${pkgname}"
install -Dm755 ${pkgname}scan "$pkgdir/usr/bin/${pkgname}scan"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
|