mirror of
https://github.com/CCF100/chloverlay.git
synced 2026-11-08 14:58:39 -06:00
Shamelessly steal ebuild from bell07 repository and make it a live ebuild
This commit is contained in:
1 parent
2a64ee59a2
commit
0a86981d03
2 files changed
+87
No files matched your search
@@ -0,0 +1 @@
|
||||
DIST Godot_v4.7.1-stable_export_templates.tpz 1280486955 BLAKE2B 464c28a47d63c4873de5fdb85ef3a1c7331a62230974639d8ebae2f84ea180e68d77c77abc6af7afaf6e7656dd156e5b563bc39e1b9b31f905b911f87af536ce SHA512 afcc83d8d3d298038f19c58744a0d660fa75dd4baa33cb55d1011bb2565a2a8c2381728924564cb909e37c205a23f21b521b23bd057993afd43ae4da0b2f9d47
|
||||
@@ -0,0 +1,86 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop wrapper xdg git-r3
|
||||
|
||||
DESCRIPTION="Unofficial remaster of the original game."
|
||||
HOMEPAGE="https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public"
|
||||
GODOT_VERSION=4.7.1
|
||||
|
||||
MY_PV="${PV//_/-}"
|
||||
|
||||
#SRC_URI="https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI="https://github.com/godotengine/godot-builds/releases/download/${GODOT_VERSION}-stable/Godot_v${GODOT_VERSION}-stable_export_templates.tpz"
|
||||
|
||||
#S="${WORKDIR}/Super-Mario-Bros.-Remastered-Public-${MY_PV}"
|
||||
EGIT_REPO_URI="https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git"
|
||||
EGIT_BRANCH="1.1"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
RESTRICT="strip"
|
||||
|
||||
BDEPEND=">=dev-games/godot-${GODOT_VERSION}[tools]"
|
||||
|
||||
pkg_setup() {
|
||||
if has_version -b ">=dev-games/godot-${GODOT_VERSION}[double-precision]"; then
|
||||
ewarn 'dev-games/godot is known to fail to with USE=double-precision for this package.'
|
||||
ewarn 'If this build fails, re-build dev-games/godot with USE=-double-precision.'
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
default
|
||||
local suffix=x86_64
|
||||
if use arm64; then
|
||||
suffix=arm64
|
||||
fi
|
||||
unzip "${DISTDIR}/Godot_v${GODOT_VERSION}-stable_export_templates.tpz" \
|
||||
"templates/linux_release.${suffix}" templates/icudt_godot.dat || die
|
||||
mkdir -p "${HOME}/.local/share/godot/export_templates/${GODOT_VERSION}.stable" || die
|
||||
mv "templates/linux_release.${suffix}" templates/icudt_godot.dat \
|
||||
"${HOME}/.local/share/godot/export_templates/${GODOT_VERSION}.stable" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
addwrite /dev/input
|
||||
local i
|
||||
for i in /dev/video* /dev/bus/usb/*/*; do
|
||||
addpredict "$i"
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
mkdir build
|
||||
local template='Linux x86'
|
||||
if use arm64; then
|
||||
template='Linux ARM64'
|
||||
fi
|
||||
godot --no-header --headless --verbose --export-release "${template}" build/SMB1R || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto "/usr/share/${PN}"
|
||||
doexe build/*.so
|
||||
doexe build/SMB1R
|
||||
insinto "/usr/share/${PN}"
|
||||
doins build/SMB1R.pck
|
||||
make_wrapper SMB1R ./SMB1R "/usr/share/${PN}"
|
||||
newicon -s 256 icon.png "${PN}.png"
|
||||
make_desktop_entry SMB1R 'Super Mario Bros. Remastered' "${PN}"
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user