blob: 175d1b294c1938c4069bfdf882f6498a689cf454 (
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
|
# Maintainer: Georg Nagel <g.schlmm at gmail dot com>
pkgname=livekit
pkgver=1.8.0
pkgrel=1
pkgdesc='LiveKit: Real-time video, audio and data for developers'
arch=(x86_64)
url='https://livekit.io/'
license=(Apache)
makedepends=(go mage git)
optdepends=(redis)
backup=("etc/livekit/config.yaml")
source=(
"https://github.com/livekit/livekit/archive/refs/tags/v${pkgver}.tar.gz"
"${pkgname}.service"
)
sha256sums=(
'18003008a5523d7c20655ffc4c2627ead05e8b2ef409b97e23dea67a8bc3ba76'
'91d65dd3f144d11fb43b8526595dce76397185b818b84c8a1068a6944ceaa7b5'
)
build() {
cd $pkgname-$pkgver
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
mage build
}
package() {
install -vDm755 $pkgname-$pkgver/bin/livekit-server -t "$pkgdir/usr/bin"
install -vDm644 $pkgname.service -t "$pkgdir/usr/lib/systemd/system/"
install -vDm644 $pkgname-$pkgver/config-sample.yaml -T "$pkgdir/etc/$pkgname/config.yaml"
}
|