48 lines
1016 B
Bash
Executable File
48 lines
1016 B
Bash
Executable File
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit desktop unpacker xdg
|
|
|
|
DESCRIPTION="The one-and-only remote for your computer."
|
|
|
|
HOMEPAGE="https://www.unifiedremote.com/"
|
|
SRC_URI="urserver.deb"
|
|
S="${WORKDIR}"
|
|
|
|
LICENSE=""
|
|
SLOT="0"
|
|
KEYWORDS="-* ~amd64"
|
|
IUSE=""
|
|
|
|
RESTRICT="strip mirror bindist fetch"
|
|
|
|
DEPEND="
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/urserver-clickfix.patch"
|
|
"${FILESDIR}/urserver-start-stop-fix.patch"
|
|
)
|
|
|
|
src_unpack() {
|
|
unpack_deb "${SRC_URI}"
|
|
}
|
|
|
|
src_install() {
|
|
sed -i '/^OnlyShowIn=/d' ${S}/usr/share/applications/urserver.desktop
|
|
cp -r ${S}/usr ${D}
|
|
cp -r ${S}/opt ${D}
|
|
# newinitd "${FILESDIR}"/${PN}.init ${PN}
|
|
# newconfd "${FILESDIR}"/${PN}.conf ${PN}
|
|
mkdir -p ${D}/etc/user/{init.d,conf.d}
|
|
cp "${FILESDIR}/${PN}.init" ${D}/etc/user/init.d/${PN}
|
|
cp "${FILESDIR}/${PN}.conf" ${D}/etc/user/conf.d/${PN}
|
|
}
|
|
|
|
pkg_nofetch() {
|
|
einfo "Please place the unified remote installation file ${SRC_URI}"
|
|
einfo "in your \$\{DISTDIR\}."
|
|
}
|