From a0116a8f27a044e969546156f525f2d23f5c80a4 Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Fri, 11 Nov 2022 11:01:25 +0100 Subject: games-simulation/kerbal-space-program: version bump Signed-off-by: Christian Schmitt --- games-simulation/kerbal-space-program/Manifest | 2 +- .../kerbal-space-program-1.12.1.ebuild | 94 ---------------------- .../kerbal-space-program-1.12.4.ebuild | 89 ++++++++++++++++++++ 3 files changed, 90 insertions(+), 95 deletions(-) delete mode 100644 games-simulation/kerbal-space-program/kerbal-space-program-1.12.1.ebuild create mode 100644 games-simulation/kerbal-space-program/kerbal-space-program-1.12.4.ebuild diff --git a/games-simulation/kerbal-space-program/Manifest b/games-simulation/kerbal-space-program/Manifest index 6c45b9e..da04c79 100644 --- a/games-simulation/kerbal-space-program/Manifest +++ b/games-simulation/kerbal-space-program/Manifest @@ -1 +1 @@ -DIST kerbal_space_program_1_12_1_03142_48164.sh 2071437768 SHA256 63b0eba38881afddd53483f6b6580cb5f31069251b78605da2c71bff9dd41a13 SHA512 ca69d5cfd0492280d342b2a68281f33bd834d695d4c98249b3132abbebdcd5ed1f93947711947f632453c0329b701eebbb0413967a90e1a443abee4bf430c811 WHIRLPOOL 2daf3b0bc2ac16e7332df324bcacf09a1f6759c89573abce3c544d51f3c5a28a03c83d0b70933dd1a5f7241e501ca6eaf2d1be9aa25e8fe90c5764dcee5990d5 +DIST kerbal_space_program_1_12_4_03187_59948.sh 2084821338 BLAKE2B 80f26d9f3a5222a104a671ffb269ace7fc349ec86453c941c98ee6ca47005319a924d355b6d5bc76a697bde485522f4aeb99a9145f95933d42aa6f3e0cd4c984 SHA512 cb94acd636b1c13483af14e6186f780b503fa0a0f25ecfae7c2481739b6d0a4b90064de698e9d865883a01fd44014220fa007ee51c4a6dc02a380b90d63620e3 diff --git a/games-simulation/kerbal-space-program/kerbal-space-program-1.12.1.ebuild b/games-simulation/kerbal-space-program/kerbal-space-program-1.12.1.ebuild deleted file mode 100644 index 5de86f3..0000000 --- a/games-simulation/kerbal-space-program/kerbal-space-program-1.12.1.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit eutils - -DESCRIPTION="A space flight simulation" -HOMEPAGE="http://kerbalspaceprogram.com/" - -GOG_MAGIC="03142_48164" - -SRC_PH="${PN//-/_}@PH@_${PV//./_}_${GOG_MAGIC}.sh" -SRC_URI=" - l10n_en? ( ${SRC_PH//@PH@/} ) -" - -RESTRICT="fetch strip" -LICENSE="all-rights-reserved" - -SLOT="0" -KEYWORDS="-* ~amd64" - -L10NS="l10n_en" #l10n_es l10n_fr l10n_it l10n_ja l10n_pt-BR l10n_ru l10n_zh-CN" -IUSE="${L10NS}" -REQUIRED_USE="^^ ( ${L10NS} )" - -DEPEND="app-arch/unzip" -RDEPEND=" - dev-libs/glib:2 - media-libs/mesa - sys-libs/glibc:2.2 - x11-libs/gdk-pixbuf:2 - x11-libs/gtk+:2 - x11-libs/libX11 - x11-libs/libXcursor - x11-libs/libXrandr -" -QA_DIR="usr/share/${PF}" -QA_PREBUILT="${QA_DIR}/Launcher.x86 ${QA_DIR}/KSP.x86 ${QA_DIR}/Launcher_Data/Mono/x86/libmono.so ${QA_DIR}/KSP_Data/Mono/x86/libmono.so" - -pkg_nofetch() { - einfo "" - einfo "Please buy and download \"${A}\" from corresponding shop (HumbleBundle or GOG)" - einfo "and move/link it to \"${DISTDIR}\"" - einfo "You can get more info on ${HOMEPAGE}" - einfo "" -} - -src_unpack() { - local tmp="${WORKDIR}/tmp" - einfo "\nUnpacking files. This can take several minutes.\n" - - mkdir "${tmp}" || die "mkdir 'tmp' failed" - cd "${tmp}" || die "cd 'tmp' failed" - - unzip -q "${DISTDIR}/${A}" - local gpath="data/noarch/game" - - mv "${gpath}" "${S}" - - cd "${S}" - - #use l10n_de && unzip -oq ksp-lang-de-de.zip && rm ksp-lang-de-de.zip - #use l10n_es && unzip -oq ksp-lang-es-es.zip && rm ksp-lang-es-es.zip - #use l10n_fr && unzip -oq ksp-lang-fr-fr.zip && rm ksp-lang-fr-fr.zip - #use l10n_it && unzip -oq ksp-lang-it-it.zip && rm ksp-lang-it-it.zip - #use l10n_ja && unzip -oq ksp-lang-ja.zip && rm ksp-lang-ja.zip - #use l10n_pt-BR && unzip -oq ksp-lang-pt-br.zip && rm ksp-lang-pt-br.zip - #use l10n_ru && unzip -oq ksp-lang-ru.zip && rm ksp-lang-ru.zip - #use l10n_zh-CN && unzip -oq ksp-lang-zh-cn.zip && rm ksp-lang-zh-cn.zip - - rm -r "${WORKDIR}/tmp" - - find . -name .DS_Store -delete -} - -src_prepare() { - default - sed -e "s@__PV__@${PV}@" -e "s@__PN__@${PN}@" "${FILESDIR}/ksp-wrapper" > "${T}"/ksp-wrapper -} - -src_install() { - local dir="/usr/share/${PN}" - insinto "${dir}" - exeinto "${dir}" - - doins -r . - doexe {KSP,KSPLauncher}.x86_64 || die "Failed to install executables" - - newbin "${T}/ksp-wrapper" "${PN}" - newicon "KSPLauncher_Data/Resources/UnityPlayer.png" "${PN}.png" - make_desktop_entry "${PN}" "Kerbal Space Program" "${PN}" || die "make_desktop_entry failed" -} diff --git a/games-simulation/kerbal-space-program/kerbal-space-program-1.12.4.ebuild b/games-simulation/kerbal-space-program/kerbal-space-program-1.12.4.ebuild new file mode 100644 index 0000000..736d640 --- /dev/null +++ b/games-simulation/kerbal-space-program/kerbal-space-program-1.12.4.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop unpacker + +DESCRIPTION="A space flight simulation" +HOMEPAGE="http://kerbalspaceprogram.com/" + +GOG_MAGIC="03187_59948" + +SRC_URI="${PN//-/_}_${PV//./_}_${GOG_MAGIC}.sh" + +RESTRICT="fetch strip" +LICENSE="all-rights-reserved" + +SLOT="0" +KEYWORDS="-* ~amd64" + +#L10NS="l10n_en" #l10n_es l10n_fr l10n_it l10n_ja l10n_pt-BR l10n_ru l10n_zh-CN" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND=" + dev-libs/glib:2 + media-libs/mesa + sys-libs/glibc:2.2 + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:2 + x11-libs/libX11 + x11-libs/libXcursor + x11-libs/libXrandr +" +QA_DIR="usr/share/${PF}" +QA_PREBUILT="${QA_DIR}/Launcher.x86 ${QA_DIR}/KSP.x86 ${QA_DIR}/Launcher_Data/Mono/x86/libmono.so ${QA_DIR}/KSP_Data/Mono/x86/libmono.so" + +pkg_nofetch() { + einfo "" + einfo "Please buy and download \"${A}\" from corresponding shop (HumbleBundle or GOG)" + einfo "and move/link it to \"${DISTDIR}\"" + einfo "You can get more info on ${HOMEPAGE}" + einfo "" +} + +src_unpack() { + local tmp="${WORKDIR}/tmp" + einfo "\nUnpacking files. This can take several minutes.\n" + + mkdir "${tmp}" || die "mkdir 'tmp' failed" + cd "${tmp}" || die "cd 'tmp' failed" + unpack_zip "${A}" + local gpath="data/noarch/game" + + mv "${gpath}" "${S}" || die "mv failed" + + cd "${S}" || die "cd 'workdir' failed" + + #use l10n_de && unzip -oq ksp-lang-de-de.zip && rm ksp-lang-de-de.zip + #use l10n_es && unzip -oq ksp-lang-es-es.zip && rm ksp-lang-es-es.zip + #use l10n_fr && unzip -oq ksp-lang-fr-fr.zip && rm ksp-lang-fr-fr.zip + #use l10n_it && unzip -oq ksp-lang-it-it.zip && rm ksp-lang-it-it.zip + #use l10n_ja && unzip -oq ksp-lang-ja.zip && rm ksp-lang-ja.zip + #use l10n_pt-BR && unzip -oq ksp-lang-pt-br.zip && rm ksp-lang-pt-br.zip + #use l10n_ru && unzip -oq ksp-lang-ru.zip && rm ksp-lang-ru.zip + #use l10n_zh-CN && unzip -oq ksp-lang-zh-cn.zip && rm ksp-lang-zh-cn.zip + + rm -r "${WORKDIR}/tmp" + + find . -name .DS_Store -delete +} + +src_prepare() { + default + sed -e "s@__PV__@${PV}@" -e "s@__PN__@${PN}@" "${FILESDIR}/ksp-wrapper" > "${T}"/ksp-wrapper +} + +src_install() { + local dir="/usr/share/${PN}" + insinto "${dir}" + exeinto "${dir}" + + doins -r . + doexe {KSP,KSPLauncher}.x86_64 || die "Failed to install executables" + + newbin "${T}/ksp-wrapper" "${PN}" + newicon "KSPLauncher_Data/Resources/UnityPlayer.png" "${PN}.png" + make_desktop_entry "${PN}" "Kerbal Space Program" "${PN}" || die "make_desktop_entry failed" +} -- cgit v1.2.3-65-gdbad