games-util/NotEnoughProduction: install jar without version

Closes: https://bugs.gentoo.org/782952
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
Andrew Ammerlaan
2021-04-15 14:50:18 +02:00
parent 4be2c74dd1
commit ebc43a593b
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 2019-2020 Gentoo Authors
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
@@ -29,7 +29,7 @@ src_unpack() {
}
src_install() {
java-pkg_newjar "${WORKDIR}/${P}.jar" "${P}.jar"
java-pkg_newjar "${WORKDIR}/${P}.jar" "${PN}.jar"
dobin "${FILESDIR}/${PN}"

View File

@@ -3,7 +3,7 @@
# we need to execute this in a user writeable directory
mkdir -p ${HOME}/.local/share/NotEnoughProduction
cp /usr/share/NotEnoughProduction/lib/NotEnoughProduction-*.jar ${HOME}/.local/share/NotEnoughProduction/NotEnoughProduction.jar
cp /usr/share/NotEnoughProduction/lib/NotEnoughProduction.jar ${HOME}/.local/share/NotEnoughProduction/NotEnoughProduction.jar
pushd ${HOME}/.local/share/NotEnoughProduction
java -jar ${HOME}/.local/share/NotEnoughProduction/NotEnoughProduction.jar
popd