smsplus-gx/package

33 lines
669 B
Plaintext
Raw Normal View History

2019-05-01 08:54:30 +00:00
#!/bin/sh
mkdir -p opk
cp ./sms_sdl opk/sms_sdl
2019-09-18 18:25:56 +00:00
cp ./sms_sdl.png opk/sms.png
2019-05-01 08:54:30 +00:00
cp ./docs/license opk/COPYING
# 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 GmenuNx entry file plus other things
print '[Desktop Entry]
Type=Application
Name=SMS Plus GX
Comment=SMS/GG/SG emulator
Exec=sms_sdl %f
2019-09-18 18:25:56 +00:00
Icon=sms
2019-05-01 08:54:30 +00:00
Terminal=false
Type=Application
Categories=emulators;
X-OD-NeedsDownscaling=true' > opk/default."$1".desktop
2019-05-01 08:54:30 +00:00
2019-09-18 18:25:56 +00:00
mksquashfs ./opk smsplus_"$1".opk -all-root -noappend -no-exports -no-xattrs
2019-05-01 08:54:30 +00:00
rm -r opk