2020-09-14 19:35:26 +02:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
MY_PN="${PN^}"
|
|
|
|
|
2020-10-25 08:38:55 +01:00
|
|
|
inherit desktop wrapper xdg
|
2020-09-14 19:35:26 +02:00
|
|
|
|
|
|
|
DESCRIPTION="A sandbox tower defense game"
|
|
|
|
HOMEPAGE="https://mindustrygame.github.io"
|
2020-09-24 01:56:47 +02:00
|
|
|
SRC_URI="https://github.com/Anuken/${MY_PN}/releases/download/v${PV}/${MY_PN}.jar -> ${P}.jar"
|
2020-09-14 19:35:26 +02:00
|
|
|
|
|
|
|
RESTRICT="mirror strip"
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
|
|
|
|
DEPEND=""
|
|
|
|
RDEPEND="
|
|
|
|
>=virtual/jdk-1.7:*
|
|
|
|
"
|
|
|
|
|
2020-09-24 01:56:47 +02:00
|
|
|
S="${WORKDIR}"
|
2020-09-14 19:35:26 +02:00
|
|
|
|
|
|
|
src_unpack() {
|
2020-09-24 01:56:47 +02:00
|
|
|
cp "${DISTDIR}/${P}.jar" "${S}/${MY_PN}.jar" || die
|
2020-09-14 19:35:26 +02:00
|
|
|
}
|
|
|
|
|
2020-10-14 06:12:47 +02:00
|
|
|
# src_prepare() {
|
|
|
|
# cp "${P}.jar" "${MY_PN}.jar"
|
|
|
|
# }
|
|
|
|
|
2020-09-14 19:35:26 +02:00
|
|
|
src_install() {
|
|
|
|
insinto "/opt/${MY_PN}"
|
|
|
|
doins "${MY_PN}.jar"
|
|
|
|
|
2020-09-14 19:43:53 +02:00
|
|
|
make_wrapper "${PN}" "java -jar /opt/${MY_PN}/${MY_PN}.jar"
|
|
|
|
make_desktop_entry "${PN}" "${MY_PN}" "${PN}" "Game;StrategyGame;"
|
2020-09-14 19:35:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
xdg_desktop_database_update
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
xdg_desktop_database_update
|
|
|
|
}
|