packages: Add element-desktop
This commit is contained in:
parent
d2b530df88
commit
e60b0d46dd
26
packages/element-desktop.debfetcher
Normal file
26
packages/element-desktop.debfetcher
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
APTURL="https://packages.element.io/debian"
|
||||||
|
DISTRO="default"
|
||||||
|
REPO="main"
|
||||||
|
PUBKEY="${PUBKEY_PATH}/element-io-archive-keyring.gpg"
|
||||||
|
PACKAGE="element-desktop"
|
||||||
|
|
||||||
|
TS=$(date +%s)
|
||||||
|
THIS_BASEDIR="/opt/Element"
|
||||||
|
|
||||||
|
install()
|
||||||
|
{
|
||||||
|
#Inspired by Gentoo's ebuild
|
||||||
|
|
||||||
|
cp -a --parents -- opt/Element "${DEBFETCHER_INSTALL_DESTDIR}"
|
||||||
|
cp --parents -- usr/share/applications/element-desktop.desktop "${DEBFETCHER_INSTALL_DESTDIR}"
|
||||||
|
chmod o=r ${DEBFETCHER_INSTALL_DESTDIR}/usr/share/applications/element-desktop.desktop
|
||||||
|
|
||||||
|
ln -sf ${DEBFETCHER_INSTALL_DESTDIR}/opt/Element/element-desktop "${DEBFETCHER_BIN_SYMLINK_DIR}"
|
||||||
|
|
||||||
|
find usr -name element-desktop.png | while read line ; do
|
||||||
|
path=$(dirname "$line")
|
||||||
|
mkdir -p -- /${DEBFETCHER_INSTALL_DESTDIR}/${path}
|
||||||
|
cp -a "$line" -- ${DEBFETCHER_INSTALL_DESTDIR}/${path}
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
BIN
pubkeys/element-io-archive-keyring.gpg
Normal file
BIN
pubkeys/element-io-archive-keyring.gpg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user