src_prepare-overlay/net-analyzer/ipscan-bin/ipscan-bin-3.7.4.ebuild
Maciej Barć ca9ea8833f
net-analyzer/ipscan-bin: bump to 3.7.4
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
2021-02-07 19:58:45 +01:00

42 lines
865 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="${PN/-bin/}"
inherit wrapper desktop xdg
DESCRIPTION="Angry IP Scanner - fast and friendly network scanner"
HOMEPAGE="https://angryip.org/"
SRC_URI="https://github.com/angryip/${MY_PN}/releases/download/${PV}/${MY_PN}-linux64-${PV}.jar -> ${P}.jar"
RESTRICT="bindist mirror strip test"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64"
RDEPEND="
>=virtual/jre-1.7:*
x11-libs/gtk+:3
"
S="${DISTDIR}"
src_unpack() {
# Don't unpack; instead:
if ! use amd64
then
die "Unsupported architecture"
fi
}
src_install() {
insinto "/opt/${PN}"
newins "${P}.jar" "${PN}.jar"
make_wrapper "${PN}" "java -jar /opt/${PN}/${PN}.jar"
# TODO: icon is ipscan (we relay on 3rd party icons)
make_desktop_entry "${PN}" "${PN}" "${MY_PN}" "Network;"
}