Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The minizip requirement (but 829499) is no longer there for 6.2.0. Migration away from x11-libs/gtkglext (bug 698950) has happened. Dropped a few other dependencies too as I can't see how they are required with lddtree. We can consider the following changes still: 1. Removing the desktop and systemd units from files/ and using sed to update /usr/bin to /opt/bin instead. 2. Installing binary directly into /opt/bin rather than /opt/anydesk/ and then symlinking from /opt/bin. Bug: https://bugs.gentoo.org/705154 Closes: https://bugs.gentoo.org/829499 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Jaco Kroon <jaco@uls.co.za> Closes: #26587 Signed-off-by: Matthew Smith <matthew@gentoo.org>
- Loading branch information
1 parent
46c452a
commit 4e213d5
Showing
2 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI="8" | ||
|
||
inherit desktop optfeature systemd xdg-utils | ||
|
||
DESCRIPTION="Feature rich multi-platform remote desktop application" | ||
HOMEPAGE="https://anydesk.com" | ||
SRC_URI="https://download.anydesk.com/linux/${P}-amd64.tar.gz | ||
https://download.anydesk.com/linux/generic-linux/${P}-amd64.tar.gz" | ||
|
||
# OpeSSL/SSLeay, libvpx, zlib, Xiph, xxHash | ||
LICENSE="AnyDesk-TOS BSD BSD-2 openssl ZLIB" | ||
SLOT="0" | ||
KEYWORDS="-* ~amd64" | ||
|
||
RDEPEND=" | ||
dev-libs/atk | ||
dev-libs/glib:2 | ||
media-libs/fontconfig:1.0 | ||
media-libs/freetype:2 | ||
media-libs/glu | ||
sys-auth/polkit | ||
x11-libs/cairo | ||
x11-libs/gdk-pixbuf:2 | ||
x11-libs/gtk+:2 | ||
x11-libs/libX11 | ||
x11-libs/libxcb | ||
x11-libs/libXdamage | ||
x11-libs/libXext | ||
x11-libs/libXfixes | ||
x11-libs/libXi | ||
x11-libs/libxkbfile | ||
x11-libs/libXrandr | ||
x11-libs/libXrender | ||
x11-libs/libXtst | ||
x11-libs/pango | ||
" | ||
BDEPEND="dev-util/patchelf" | ||
|
||
RESTRICT="bindist mirror" | ||
|
||
QA_PREBUILT="opt/${PN}/*" | ||
|
||
src_install() { | ||
local dst="/opt/${PN}" | ||
|
||
exeinto ${dst} | ||
doexe ${PN} | ||
|
||
dodir /opt/bin | ||
dosym "${dst}/${PN}" "/opt/bin/${PN}" | ||
|
||
newinitd "${FILESDIR}/anydesk.init" anydesk | ||
systemd_newunit "${FILESDIR}/anydesk-4.0.1.service" anydesk.service | ||
|
||
insinto /usr/share/polkit-1/actions | ||
doins polkit-1/com.anydesk.anydesk.policy | ||
|
||
insinto /usr/share | ||
doins -r icons | ||
|
||
domenu "${FILESDIR}/anydesk.desktop" | ||
|
||
dodoc copyright README | ||
} | ||
|
||
pkg_postinst() { | ||
xdg_desktop_database_update | ||
xdg_icon_cache_update | ||
|
||
if [[ -z ${REPLACING_VERSIONS} ]]; then | ||
elog "To run AnyDesk as background service use:" | ||
elog | ||
elog "OpenRC:" | ||
elog "# rc-service anydesk start" | ||
elog "# rc-update add anydesk default" | ||
elog | ||
elog "Systemd:" | ||
elog "# systemctl start anydesk.service" | ||
elog "# systemctl enable anydesk.service" | ||
elog | ||
elog "Please see README at /usr/share/doc/${PF}/README.bz2 for" | ||
elog "further information about the linux version of AnyDesk." | ||
elog | ||
fi | ||
|
||
optfeature_header "AnyDesk uses additional tools to query information about the host:" | ||
optfeature "lsb_release" sys-apps/lsb-release | ||
optfeature "lspci" sys-apps/pciutils | ||
optfeature "lsusb" sys-apps/usbutils | ||
} | ||
|
||
pkg_postrm() { | ||
xdg_desktop_database_update | ||
xdg_icon_cache_update | ||
} |