Add net-p2p/lanxchange
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
27
net-p2p/lanxchange/lanxchange-1.41.ebuild
Normal file
27
net-p2p/lanxchange/lanxchange-1.41.ebuild
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user