Skip to content

Commit 02ad875

Browse files
committed
Update gearboy.sh
fixing due to file folder changes
1 parent cec724f commit 02ad875

File tree

1 file changed

+8
-39
lines changed

1 file changed

+8
-39
lines changed

scriptmodules/emulators/gearboy.sh

Lines changed: 8 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -15,60 +15,29 @@ rp_module_desc="Gearboy - Gameboy & Gameboy Color Emulator"
1515
rp_module_licence="GPL3 https://raw.githubusercontent.com/drhelius/Gearboy/master/LICENSE"
1616
rp_module_section="exp"
1717
rp_module_repo="git https://github.com/DrHelius/GearBoy.git master"
18-
rp_module_flags="!x86 !mali !rpi5"
18+
rp_module_flags="!x86"
1919

2020
function depends_gearboy() {
21-
getDepends build-essential libfreeimage-dev libopenal-dev libpango1.0-dev libsndfile1-dev libudev-dev libasound2-dev libjpeg-dev libtiff5-dev libwebp-dev automake libconfig++-dev libsdl2-dev libglew-dev
22-
#if [[ "$__raspbian_ver" -lt "8" ]]; then
23-
# getDepends libjpeg8-dev
24-
#else
25-
# getDepends libjpeg-dev
26-
#fi
21+
getDepends build-essential libsdl2-dev libglew-dev libgtk-3-dev
22+
2723
}
2824

2925
function sources_gearboy() {
3026
gitPullOrClone
3127
}
3228

3329
function build_gearboy() {
34-
if isPlatform "rpi1"; then
35-
cd "$md_build/platforms/raspberrypi"
36-
elif isPlatform "rpi2"; then
37-
cd "$md_build/platforms/raspberrypi2"
38-
elif isPlatform "rpi3"; then
39-
cd "$md_build/platforms/raspberrypi3"
40-
elif isPlatform "rpi4"; then
41-
cd "$md_build/platforms/raspberrypi4"
42-
fi
43-
30+
cd "$md_build/platforms/linux"
4431
make clean
4532
make
4633
strip "gearboy"
47-
if isPlatform "rpi1"; then
48-
echo "Installing for Raspberry Pi..."
49-
md_ret_require="$md_build/platforms/raspberrypi/gearboy"
50-
elif isPlatform "rpi2"; then
51-
echo "Installing for Raspberry Pi 2..."
52-
md_ret_require="$md_build/platforms/raspberrypi2/gearboy"
53-
elif isPlatform "rpi3"; then
54-
echo "Installing for Raspberry Pi 3..."
55-
md_ret_require="$md_build/platforms/raspberrypi3/gearboy"
56-
elif isPlatform "rpi4"; then
57-
echo "Installing for Raspberry Pi 4..."
58-
md_ret_require="$md_build/platforms/raspberrypi4/gearboy"
59-
fi
34+
35+
md_ret_require="$md_build/platforms/linux/gearboy"
6036
}
6137

6238
function install_gearboy() {
63-
if isPlatform "rpi1"; then
64-
cp "$md_build/platforms/raspberrypi/gearboy" "$md_inst/gearboy"
65-
elif isPlatform "rpi2"; then
66-
cp "$md_build/platforms/raspberrypi2/gearboy" "$md_inst/gearboy"
67-
elif isPlatform "rpi3"; then
68-
cp "$md_build/platforms/raspberrypi3/gearboy" "$md_inst/gearboy"
69-
elif isPlatform "rpi4"; then
70-
cp "$md_build/platforms/raspberrypi4/gearboy" "$md_inst/gearboy"
71-
fi
39+
cp "$md_build/platforms/linux/gearboy" "$md_inst/gearboy"
40+
7241
}
7342

7443
function configure_gearboy() {

0 commit comments

Comments
 (0)