summaryrefslogtreecommitdiff
path: root/mediamtx
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-10-12 16:39:21 +0200
committermetamuffin <metamuffin@disroot.org>2024-10-12 16:39:21 +0200
commita9fd82ae18eb67f6288d46d40bc893598922d181 (patch)
tree0f8f2d2cef42fcac145d5beb097e76197bc6f232 /mediamtx
downloadpkgbuilds-a9fd82ae18eb67f6288d46d40bc893598922d181.tar
pkgbuilds-a9fd82ae18eb67f6288d46d40bc893598922d181.tar.bz2
pkgbuilds-a9fd82ae18eb67f6288d46d40bc893598922d181.tar.zst
add existing pkgbuilds
Diffstat (limited to 'mediamtx')
-rw-r--r--mediamtx/.SRCINFO18
-rw-r--r--mediamtx/PKGBUILD40
-rw-r--r--mediamtx/mediamtx.service10
-rw-r--r--mediamtx/mediamtx@.service10
4 files changed, 78 insertions, 0 deletions
diff --git a/mediamtx/.SRCINFO b/mediamtx/.SRCINFO
new file mode 100644
index 0000000..6030ee4
--- /dev/null
+++ b/mediamtx/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = mediamtx
+ pkgdesc = Ready-to-use RTSP / RTMP / LL-HLS / WebRTC server and proxy that allows to read, publish and proxy video and audio streams
+ pkgver = 1.8.0
+ pkgrel = 1
+ url = https://github.com/bluenviron/mediamtx
+ arch = x86_64
+ arch = aarch64
+ license = MIT
+ makedepends = go
+ backup = etc/mediamtx/mediamtx.yml
+ source = mediamtx-1.8.0.tar.gz::https://github.com/bluenviron/mediamtx/archive/refs/tags/v1.8.0.tar.gz
+ source = mediamtx.service
+ source = mediamtx@.service
+ b2sums = ac4a8bd9ce55a927f4d6849eac536c22db7fee9283ec4b5deecfe05e6832a9ef6ab6e8bffffc3a93ed6dfa9346e184ddb339697b7b7c8e258a26d9bebdd476de
+ b2sums = 636b7c89aec0e54a471464d013fd13fd83bebb21c3ebef9c0259fdea21185e3317ced09ef1c821ed253a62c3825f00cced19e42cdd175d1ddaecdef9800eeb4f
+ b2sums = 280cab48cc4d513d20952c82aab7474b9eb474dcb37a2b9d559a7caa8cd5ab6527a293c77b8ab7c64f02564c42c91b7141756020adef8ddb54316e8fcea6d0bf
+
+pkgname = mediamtx
diff --git a/mediamtx/PKGBUILD b/mediamtx/PKGBUILD
new file mode 100644
index 0000000..9328b1c
--- /dev/null
+++ b/mediamtx/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: database64128 <free122448@hotmail.com>
+
+pkgname=mediamtx
+pkgver=1.8.3
+pkgrel=1
+pkgdesc="Ready-to-use RTSP / RTMP / LL-HLS / WebRTC server and proxy that allows to read, publish and proxy video and audio streams"
+arch=('x86_64' 'aarch64')
+url="https://github.com/bluenviron/$pkgname"
+license=('MIT')
+makedepends=('go')
+backup=("etc/$pkgname/mediamtx.yml")
+source=(
+ "$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
+ "$pkgname.service"
+ "$pkgname@.service"
+)
+b2sums=('b8060b459bc1d3da7c54deccfc6d66576312263b2a6b143a2556f7f670f0c0dbf070123564446a5f14ad2a772ade465c4e92ecdd105f4000836f02e1b1e6582c'
+ '636b7c89aec0e54a471464d013fd13fd83bebb21c3ebef9c0259fdea21185e3317ced09ef1c821ed253a62c3825f00cced19e42cdd175d1ddaecdef9800eeb4f'
+ '280cab48cc4d513d20952c82aab7474b9eb474dcb37a2b9d559a7caa8cd5ab6527a293c77b8ab7c64f02564c42c91b7141756020adef8ddb54316e8fcea6d0bf')
+
+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"
+ go generate ./...
+ go build -ldflags="-s -w -linkmode=external -X github.com/bluenviron/mediamtx/internal/core.version=v$pkgver"
+}
+
+package() {
+ install -Dm644 $pkgname.service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+ install -Dm644 $pkgname@.service "$pkgdir"/usr/lib/systemd/system/$pkgname@.service
+ cd "$pkgname-$pkgver"
+ install -d "$pkgdir"/etc/$pkgname
+ install -Dm644 $pkgname.yml "$pkgdir"/etc/$pkgname/$pkgname.yml
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
+}
diff --git a/mediamtx/mediamtx.service b/mediamtx/mediamtx.service
new file mode 100644
index 0000000..c8ea8bf
--- /dev/null
+++ b/mediamtx/mediamtx.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=MediaMTX
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+ExecStart=/usr/bin/mediamtx /etc/mediamtx/mediamtx.yml
+
+[Install]
+WantedBy=multi-user.target
diff --git a/mediamtx/mediamtx@.service b/mediamtx/mediamtx@.service
new file mode 100644
index 0000000..055ce64
--- /dev/null
+++ b/mediamtx/mediamtx@.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=MediaMTX
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+ExecStart=/usr/bin/mediamtx /etc/mediamtx/%i.yml
+
+[Install]
+WantedBy=multi-user.target