


















captn3m0, after checking, you did something different from the patch. Are you sure that the usage of install() is correct there? According to the docs, that's not the correct usage of that.
I just checked and /usr/bin/signal-desktop-beta is not created after this change.
I propose to create a wrapper script that calls exec /opt/Signal Beta/signal-desktop-beta $@, or do the symlink on package(), but then we would need a .install file with a post_remove() hook there.
Thanks, vitaliikuzhdin. I hope this change also gets rid of the conflicting /usr/bin/signal-desktop-beta ownership when trying to replace the package.
Dropped the .install file after validating the hooks. Thanks for the suggestion.
diff -aur signal-desktop-beta-bin/PKGBUILD signal-desktop-beta-bin~/PKGBUILD
--- signal-desktop-beta-bin/PKGBUILD
+++ signal-desktop-beta-bin~/PKGBUILD
@@ -8,8 +8,8 @@
license=('GPL3')
depends=('libnotify' 'libxtst' 'nss' 'xdg-utils' 'libxss')
options=('!strip' '!emptydirs')
-install=${pkgname}.install
provides=('signal-desktop-beta')
+conflicts=('signal-desktop-beta')
_pkgver=7.70.0-beta.1
pkgver=${_pkgver/-/}
source=("https://updates.signal.org/desktop/apt/pool/s/signal-desktop-beta/signal-desktop-beta_${_pkgver}_amd64.deb")
@@ -18,4 +18,8 @@
package(){
# Extract package data
tar xf data.tar.xz -C "${pkgdir}"
+
+ # Link to the binary
+ install -d "${pkgdir}/usr/bin"
+ ln -sf '/opt/Signal Beta/signal-desktop-beta' "${pkgdir}/usr/bin/signal-desktop-beta"
}
Only in signal-desktop-beta-bin: signal-desktop-beta-bin.install
Feel free to send a patch, or I will do it when I have some spare time. Also, what install() section are you talking about? Did you mean package()?
Please remove the .install file (the icon cache is already handled by a hook provided by the respective package) and move the symlink creation to install().
The issue should be fixed on 7.42.0beta.1.
signal-desktop-beta is not affected by this because you build it locally, so if it's crucial for you, you can switch to that package instead.
Please don't downgrade glibc as someone in the Signal issue suggests, that's a terrible idea.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Ouch, corrected. Added conflicts as well. An install might complain about /usr/bin/signal-desktop-beta already existing, that would need a manual cleanup.