Package Details: go2rtc 1.9.7-1

Git Clone URL: https://aur.archlinux.org/go2rtc.git (read-only, click to copy)
Package Base: go2rtc
Description: Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
Upstream URL: https://github.com/AlexxIT/go2rtc
Licenses: MIT
Submitter: dadav
Maintainer: ruahcra (Gilrain)
Last Packager: Gilrain
Votes: 2
Popularity: 0.71
First Submitted: 2024-01-10 20:44 (UTC)
Last Updated: 2024-11-12 10:08 (UTC)

Required by (0)

Sources (5)

Latest Comments

Gilrain commented on 2024-07-17 16:35 (UTC) (edited on 2024-07-17 16:35 (UTC) by Gilrain)

Hi, I'm willing to adopt this package and give it the attention it deserve.

Here's an updated PKGBUILD, complete with source building. I could even make it a true turnkey service with a sysusers.d and service file!

Don't let it fester.

diff --git a/PKGBUILD b/PKGBUILD
index dccfba6..d4841a1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,26 @@
 # Maintainer: dadav <33197631+dadav@users.noreply.github.com>
 pkgname=go2rtc
-pkgver=1.8.5
+pkgver=1.9.4
 pkgrel=1
 pkgdesc="Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc."
-arch=('x86_64')
 url="https://github.com/AlexxIT/go2rtc"
+arch=('x86_64')
 license=('MIT')
-source=("https://github.com/AlexxIT/go2rtc/releases/download/v${pkgver}/go2rtc_linux_amd64")
-sha256sums=('a10b03ee68e4502933eaf2c1cda871a9e5b1080fd775a85115ee6c15a5fcde1d')
-options=(!strip)
+depends=('glibc')
+makedepends=('go')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
+sha512sums=('e62ca900d1bb9b78708714276aaecf910cc8b2ad9cefc5f75cf8f82edfeb94bcbf449695a8853ffd8aac458587e9083f62722f76ee37f11306b7e1751f4deeae')
+
+build() {
+   cd "${pkgname}-${pkgver}"
+   export CGO_LDFLAGS="${LDFLAGS}"
+   export CGO_CPPFLAGS="${CPPFLAGS}"
+   export CGO_CFLAGS="${CFLAGS}"
+   export CGO_CXXFLAGS="${CXXFLAGS}"
+   export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+   go build .
+}

 package() {
-       install -D -m755 "$srcdir"/go2rtc_linux_amd64 "$pkgdir/usr/bin/go2rtc"
+       install -D -m755 "${pkgname}-${pkgver}"/go2rtc "${pkgdir}/usr/bin/go2rtc"
 }

travisghansen commented on 2024-05-10 17:29 (UTC) (edited on 2024-05-10 20:30 (UTC) by travisghansen)

You can add me as a co-maintainer or here is the diff..

diff --git a/.SRCINFO b/.SRCINFO
index f85ade4..6f827ca 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,15 @@
 pkgbase = go2rtc
    pkgdesc = Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
-   pkgver = 1.8.5
+   pkgver = 1.9.1
    pkgrel = 1
    url = https://github.com/AlexxIT/go2rtc
+   arch = aarch64
    arch = x86_64
    license = MIT
    options = !strip
-   source = https://github.com/AlexxIT/go2rtc/releases/download/v1.8.5/go2rtc_linux_amd64
-   sha256sums = a10b03ee68e4502933eaf2c1cda871a9e5b1080fd775a85115ee6c15a5fcde1d
+   source_aarch64 = go2rtc-1.9.1-aarch64::https://github.com/AlexxIT/go2rtc/releases/download/v1.9.1/go2rtc_linux_arm64
+   sha256sums_aarch64 = 39f1f36ad10f256ff8c57e42a402e4aa429a2e1e16c90212e094aa9b36151ab1
+   source_x86_64 = go2rtc-1.9.1-x86_64::https://github.com/AlexxIT/go2rtc/releases/download/v1.9.1/go2rtc_linux_amd64
+   sha256sums_x86_64 = 39f1f36ad10f256ff8c57e42a402e4aa429a2e1e16c90212e094aa9b36151ab1

 pkgname = go2rtc
diff --git a/PKGBUILD b/PKGBUILD
index dccfba6..aab0360 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,17 @@
 # Maintainer: dadav <33197631+dadav@users.noreply.github.com>
 pkgname=go2rtc
-pkgver=1.8.5
+pkgver=1.9.1
 pkgrel=1
 pkgdesc="Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc."
-arch=('x86_64')
+arch=('aarch64' 'x86_64')
 url="https://github.com/AlexxIT/go2rtc"
 license=('MIT')
-source=("https://github.com/AlexxIT/go2rtc/releases/download/v${pkgver}/go2rtc_linux_amd64")
-sha256sums=('a10b03ee68e4502933eaf2c1cda871a9e5b1080fd775a85115ee6c15a5fcde1d')
+source_x86_64=("$pkgname-$pkgver-x86_64::https://github.com/AlexxIT/go2rtc/releases/download/v${pkgver}/go2rtc_linux_amd64")
+source_aarch64=("$pkgname-$pkgver-aarch64::https://github.com/AlexxIT/go2rtc/releases/download/v${pkgver}/go2rtc_linux_arm64")
+sha256sums_aarch64=('39f1f36ad10f256ff8c57e42a402e4aa429a2e1e16c90212e094aa9b36151ab1')
+sha256sums_x86_64=('39f1f36ad10f256ff8c57e42a402e4aa429a2e1e16c90212e094aa9b36151ab1')
 options=(!strip)

 package() {
-   install -D -m755 "$srcdir"/go2rtc_linux_amd64 "$pkgdir/usr/bin/go2rtc"
+   install -D -m755 "$srcdir"/$pkgname-$pkgver-$CARCH "$pkgdir/usr/bin/go2rtc"
 }

travisghansen commented on 2024-05-10 17:20 (UTC)

Can we add aarch64 support to this package please?

dadav commented on 2024-03-01 19:09 (UTC)

You are right, I'm getting

/usr/share/makepkg/tidy/strip.sh: line 48: debugedit: command not found

I'll add your fix, thank you!

ruahcra commented on 2024-02-29 01:29 (UTC)

@dadav does this still work for you? If I install this I end up with a broken binary. If I add options=(!strip) to the PKGBUILd then it's fine.