diff options
author | zxp19821005 | 2023-08-10 13:10:02 +0800 |
---|---|---|
committer | zxp19821005 | 2023-08-10 13:10:02 +0800 |
commit | 6fc8c35747c8a7eb92d79ae9c643430693e70a52 (patch) | |
tree | 2abe5618fa5b41cafb804ceca2005dba08a922f8 | |
download | aur-6fc8c35747c8a7eb92d79ae9c643430693e70a52.tar.gz |
first release
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rw-r--r-- | broadcast.sh | 8 |
3 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fe3bce13c80e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = broadcast-bin + pkgdesc = Advanced tool for recording your desktop. Complete with overlay support. + pkgver = 1.0.4 + pkgrel = 1 + url = https://github.com/Mobiz-Advanced-Technologies/Broadcast + arch = x86_64 + license = AGPL3 + depends = bash + depends = electron25 + conflicts = broadcast + source = broadcast-1.0.4.deb::https://github.com/Mobiz-Advanced-Technologies/Broadcast/releases/download/v1.0.4/broadcast_1.0.4_amd64.deb + source = broadcast.sh + sha256sums = 75c4fdff330ea538f80648a849946c8de15d88d355621082fc68289aa6978b9d + sha256sums = 0ab1aab4e20a59e6af63785bf4b4e21eddb4668a610a34f44b62bc48597d3c78 + +pkgname = broadcast-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5522f3f64a2b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> +pkgname=broadcast-bin +_appname="Cubic Broadcast" +pkgver=1.0.4 +pkgrel=1 +pkgdesc="Advanced tool for recording your desktop. Complete with overlay support." +arch=("x86_64") +url="https://github.com/Mobiz-Advanced-Technologies/Broadcast" +license=("AGPL3") +conflicts=("${pkgname%-bin}") +depends=('bash' 'electron25') +source=("${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_amd64.deb" + "${pkgname%-bin}.sh") +sha256sums=('75c4fdff330ea538f80648a849946c8de15d88d355621082fc68289aa6978b9d' + '0ab1aab4e20a59e6af63785bf4b4e21eddb4668a610a34f44b62bc48597d3c78') +package() { + bsdtar -xf "${srcdir}/data.tar.xz" + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}" + install -Dm644 "${srcdir}/opt/${_appname}/resources/app.asar" "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}.asar" + sed "s|\"/opt/${_appname}/${pkgname%-bin}\" %U|/opt/${pkgname%-bin}/${pkgname%-bin}|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" + install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" + install -Dm644 "${srcdir}/usr/share/icons/hicolor/0x0/apps/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps" +}
\ No newline at end of file diff --git a/broadcast.sh b/broadcast.sh new file mode 100644 index 000000000000..f7f855f0bdb4 --- /dev/null +++ b/broadcast.sh @@ -0,0 +1,8 @@ +#!/bin/bash +_ELECTRON=/usr/bin/electron25 +_ASAR=/opt/broadcast/broadcast.asar +if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then + exec ${_ELECTRON} ${_ASAR} "$@" +else + exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" +fi
\ No newline at end of file |