debfetcher/packages/signal.debfetcher

22 linhas
804 B
Plaintext
Original Visão normal Histórico

2023-01-08 14:00:24 +01:00
APTURL="https://updates.signal.org/desktop/apt"
DISTRO="xenial"
REPO="main"
PUBKEY="${PUBKEY_PATH}/signal-desktop-keyring.gpg"
PACKAGE="signal-desktop"
TS=$(date +%s)
THIS_BASEDIR="/opt/Signal"
install()
{
#Inspired by Gentoo's ebuild
sed -e 's| --no-sandbox||g' -i usr/share/applications/signal-desktop.desktop
sed -e "s|/opt/Signal|${DEBFETCHER_INSTALL_DESTDIR}/opt/Signal|g" -i usr/share/applications/signal-desktop.desktop
cp -a --parents -- opt/Signal "${DEBFETCHER_INSTALL_DESTDIR}"
cp --parents -- usr/share/applications/signal-desktop.desktop "${DEBFETCHER_INSTALL_DESTDIR}"
chmod o=r ${DEBFETCHER_INSTALL_DESTDIR}/usr/share/applications/signal-desktop.desktop
ln -sf ${DEBFETCHER_INSTALL_DESTDIR}/opt/Signal/signal-desktop "${DEBFETCHER_BIN_SYMLINK_DIR}"
}