Add net-p2p/lanxchange

Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
Shin'ya Minazuki
2026-05-06 10:35:17 -03:00
parent f4ee5f19f1
commit 8881b0b594
3 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
# Copyright 2026 Shin'ya Minazuki
EAPI=8
inherit wrapper desktop xdg
DESCRIPTION="A simple tool for spontaneous, local network file transfers."
HOMEPAGE="https://lanxchange.com"
SRC_URI="https://github.com/tfg13/LanXchange/releases/download/v${PV}/lxc.zip -> ${P}.zip"
S="${WORKDIR}"
LICENSE="GPL-3+"
SLOT="0"
DEPEND="virtual/jre:1.8"
src_install() {
insinto "/opt/lanxchange"
doins -r "${S}/3rd_party_licenses"
doins -r "${S}/img"
doins "${S}/lanxchange.jar"
# Chances are that the slot system will take care of the symlinks for Java
# Hence the call to env(1)
make_wrapper "lanxchange" "/usr/bin/env -S java -jar /opt/lanxchange/lanxchange.jar"
# Now, the desktop entry
newicon "/opt/lanxchange/img/logo.png" "${PN}.png"
make_desktop_entry "${PN}" "LanXchange" "${PN}" "Network;P2P"
}