summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b398ec401a5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Noeljnuior <liamgliamgmailcom>
+
+pkgname=nextcloud-spreed-signaling
+pkgver=0.2.0
+pkgrel=1
+pkgdesc='Standalone signaling server for Nextcloud Talk.'
+arch=(any)
+url='https://github.com/strukturag/nextcloud-spreed-signaling'
+license=(AGPL3)
+makedepends=('go>=1.10')
+install="nextcloud-spreed-signaling.install"
+depends=()
+optdepends=('nats-server' 'janus-gateway')
+source=("https://github.com/strukturag/nextcloud-spreed-signaling/releases/download/v$pkgver/nextcloud-spreed-signaling-v$pkgver.tar.gz")
+sha256sums=('SKIP')
+
+build() {
+ cd "$srcdir/$pkgname-v$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"
+
+ make -j 1 build
+ make -j 1 client
+}
+
+package() {
+ cd "$srcdir/$pkgname-v$pkgver"
+ install -Dm755 "bin/signaling" "$pkgdir/usr/bin/signaling"
+ install -Dm755 "bin/proxy" "$pkgdir/usr/bin/signaling-proxy"
+ install -Dm755 "bin/client" "$pkgdir/usr/bin/signaling-client"
+ install -Dm644 "dist/init/systemd/signaling.service" "$pkgdir/usr/lib/systemd/system/signaling.service"
+ install -Dm600 "server.conf.in" "$pkgdir/etc/signaling/server.conf"
+}