blob: 1529bc6c9c91064c4929b2a5d8a956dc87e9796f (
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
|
# Maintainer: Georg Nagel <g.schlmm at gmail dot com>
pkgname=livekit-cli
pkgver=2.1.0
pkgrel=1
pkgdesc='LiveKit CLI: command line utilities that interacts with LiveKit'
arch=(x86_64)
url='https://livekit.io/'
license=(Apache)
makedepends=(go)
source=(
"https://github.com/livekit/livekit-cli/archive/refs/tags/v${pkgver}.tar.gz"
)
sha256sums=(
'b49a395169381140f39a9da8308ac100626e7697862fbee1e6c49fa9d1bce657'
)
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 -mod=readonly -modcacherw"
go build -ldflags "-w -s" -o ./bin/lk ./cmd/lk
GOOS=linux GOARCH=amd64 go build -o ./bin/lk-linux ./cmd/lk
}
package() {
install -vDm755 "${pkgname}-${pkgver}/bin/lk" -t "$pkgdir/usr/bin"
}
|