28 lines
802 B
Bash
28 lines
802 B
Bash
# 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"
|
|
}
|