1
0
flewkey-overlay/x11-drivers/displaylink-driver/displaylink-driver-5.5.0.59.118.ebuild
Ryan Fox 94bed71b61
x11-drivers/displaylink-driver: Bump version
Bump to 5.5.0.59.118

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Ryan Fox <flewkey@2a03.party>
2022-01-21 12:46:24 -08:00

63 lines
1.6 KiB
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit udev
AR_DATE="2021-12"
AR_NAME="DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu%20%28Beta%295.5%20Beta-EXE.zip"
UBUNTU_VER="1604"
MY_PV=$(ver_rs 3 '-')
MY_P="${PN}-${MY_PV}"
S="${WORKDIR}/${MY_P}"
SRC_URI="https://www.synaptics.com/sites/default/files/exe_files/${AR_DATE}/${AR_NAME} -> ${P}.zip"
KEYWORDS="~amd64"
DESCRIPTION="Driver for modern DisplayLink devices"
HOMEPAGE="http://www.displaylink.com/downloads/ubuntu"
LICENSE="DisplayLink-EULA"
SLOT="0"
DEPEND="app-arch/unzip"
RDEPEND="
virtual/libusb
virtual/udev
x11-libs/libevdi
"
QA_PREBUILT="opt/displaylink/DisplayLinkManager"
src_unpack() {
default
sh "${WORKDIR}/${PN}-$(ver_rs 3 '-beta-').run" --noexec --keep
}
src_prepare() {
default
source "${S}/udev-installer.sh" && create_udev_rules_file "${S}/99-dlm.rules"
source "${S}/udev-installer.sh" && displaylink_bootstrapper_code > "${S}/udev.sh"
cat "${FILESDIR}/openrc_start_stop_functions" >> "${S}/udev.sh"
source "${S}/udev-installer.sh" && create_main_function >> "${S}/udev.sh"
}
src_install() {
exeinto "/opt/displaylink"
insinto "/opt/displaylink"
case "${ARCH}" in
amd64) MY_ARCH="x64" ;;
*) MY_ARCH="${ARCH}" ;;
esac
ARCH_DIR="${S}/${MY_ARCH}-ubuntu-${UBUNTU_VER}"
doexe "${ARCH_DIR}/DisplayLinkManager"
doins "${S}/ella-dock-release.spkg"
doins "${S}/firefly-monitor-release.spkg"
doins "${S}/ridge-dock-release.spkg"
newinitd "${FILESDIR}/dlm.init.d" "dlm"
udev_dorules "${S}/99-dlm.rules"
insopts -m744
doins "${S}/udev.sh"
}