Skip to content

Commit bbdc6a1

Browse files
committed
Update abuse.sh
1 parent ceaa5c5 commit bbdc6a1

File tree

1 file changed

+40
-15
lines changed

1 file changed

+40
-15
lines changed

scriptmodules/ports/abuse.sh

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,60 @@
1313
rp_module_id="abuse"
1414
rp_module_desc="Abuse"
1515
rp_module_licence="GPL https://raw.githubusercontent.com/Xenoveritas/abuse/master/COPYING"
16-
rp_module_repo="wget http://abuse.zoy.org/raw-attachment/wiki/download/abuse-0.8.tar.gz"
1716
rp_module_section="exp"
18-
rp_module_flags="!mali !all rpi4 rpi3"
17+
rp_module_flags=""
1918

20-
# abuse-lib & abuse-sfx will pull in the older abuse package which only works under X
2119
function depends_abuse() {
22-
getDepends cmake libsdl1.2-dev libsdl-mixer1.2-dev xorg
20+
local depends=(cmake)
21+
22+
isPlatform "64bit" && depends+=(libsdl2-dev libsdl2-mixer-dev)
23+
isPlatform "32bit" && depends+=(libsdl1.2-dev libsdl-mixer1.2-dev xorg)
24+
25+
getDepends "${depends[@]}"
2326
}
2427

2528
function sources_abuse() {
26-
downloadAndExtract "$md_repo_url" "$md_build"
27-
#wget http://abuse.zoy.org/raw-attachment/wiki/download/abuse-0.8.tar.gz
28-
#tar -xf abuse-0.8.tar.gz
29+
if isPlatform "64bit"; then
30+
gitPullOrClone "$md_build" https://github.com/Exarkuniv/abuse-Rpi.git
31+
else
32+
downloadAndExtract "http://abuse.zoy.org/raw-attachment/wiki/download/abuse-0.8.tar.gz" "$md_build"
33+
fi
2934
}
3035

3136
function build_abuse() {
32-
cd abuse-0.8
33-
./configure --enable-debug
34-
make
35-
md_ret_require=()
37+
if isPlatform "64bit"; then
38+
mkdir build
39+
cd build
40+
cmake -DCMAKE_INSTALL_PREFIX="$md_inst" ..
41+
make
42+
md_ret_require=()
43+
else
44+
cd abuse-0.8
45+
./configure --enable-debug
46+
make
47+
md_ret_require=()
48+
fi
3649
}
3750

3851
function install_abuse() {
39-
cd abuse-0.8
40-
make install
41-
md_ret_files=(
52+
if isPlatform "64bit"; then
53+
cd build
54+
make install
55+
else
56+
cd abuse-0.8
57+
make install
58+
fi
59+
60+
md_ret_files=(
4261
)
4362
}
4463

4564
function configure_abuse() {
46-
addPort "$md_id" "abuse" "Abuse" "XINIT: /usr/local/bin/abuse -fullscreen"
65+
if isPlatform "64bit"; then
66+
addPort "$md_id" "abuse" "Abuse" "$md_inst/bin/abuse -datadir /opt/retropie/ports/abuse/share/games/abuse"
67+
68+
else
69+
addPort "$md_id" "abuse" "Abuse" "XINIT: /usr/local/bin/abuse -fullscreen"
70+
71+
fi
4772
}

0 commit comments

Comments
 (0)