This repository was archived by the owner on Apr 12, 2024. It is now read-only.
forked from scummvm/scummvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage
More file actions
executable file
·55 lines (47 loc) · 1.33 KB
/
package
File metadata and controls
executable file
·55 lines (47 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
mkdir -p opk/cores
cd /opt/sdlretro
git pull
mkdir -p build/
cd build/
cmake -DCMAKE_BUILD_TYPE=Release -DMODEL=funkey ..
make clean
make -j16
/opt/FunKey-sdk/bin/arm-funkey-linux-musleabihf-strip src/sdlretro
cp -f src/sdlretro ../../libretro-scummvm/opk
cd /opt/libretro-scummvm
#git pull
git fetch --all
git merge upstream/master
cd backends/platform/libretro/build
make clean
make -j16
/opt/FunKey-sdk/bin/arm-funkey-linux-musleabihf-strip scummvm_libretro.so
cp -f scummvm_libretro.so ../../../../opk/cores/
cd -
cp -f icons/scummvm.png opk/
cp -f AUTHORS CONTRIBUTING.md COPYING COPYRIGHT NEWS.md README.md opk/
cd backends/platform/libretro/aux-data
./bundle_aux_data.bash
cd -
unzip backends/platform/libretro/aux-data/scummvm_tmp.zip -d opk/
# https://unix.stackexchange.com/questions/219268/how-to-add-new-lines-when-using-echo
print()
case ${IFS- } in
(\ *) printf %b\\n "$*";;
(*) IFS=\ $IFS
printf %b\\n "$*"
IFS=${IFS#?}
esac
# Create GMenu2X entry file plus other things
print '[Desktop Entry]
Name=ScummVM
Comment=ScummVM v2.7.0git for Libretro
Exec=sdlretro %f
Icon=scummvm
Categories=dev
SelectorFilter=scummvm' > opk/scummvm.funkey-s.desktop
rm -f *.opk
mksquashfs opk/ scummvm_v2.7.0git_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
rm -rf opk/
rm -f backends/platform/libretro/aux-data/scummvm_tmp.zip