Drop IPK support and only support OPKs.

This commit is contained in:
gameblabla 2020-01-18 01:15:27 +01:00
parent 5de71197c3
commit 631f304bca
No known key found for this signature in database
GPG Key ID: B24EFBB23B5F76CB
2 changed files with 0 additions and 46 deletions

View File

@ -1,46 +0,0 @@
#!/bin/sh
mkdir -p ipkg/home/retrofw/emus/sms_sdl
mkdir -p ipkg/home/retrofw/apps/gmenu2x/sections/emulators
cp ./sms_sdl ipkg/home/retrofw/emus/sms_sdl/sms_sdl
cp ./sms_sdl.png ipkg/home/retrofw/emus/sms_sdl/sms_sdl.png
cd ipkg
# 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 'Package: sms_sdl
Version: 20190315
Description: SMS/GG emulator
Section: emus
Priority: optional
Maintainer: gameblabla
Architecture: mipsel
Homepage: https://github.com/gameblabla/sms_sdl
Depends:
Source: https://github.com/gameblabla/sms_sdl' > control
print '2.0' > debian-binary
print 'title=SMS Plus GX
description=Master System/GG Emulator
exec=/home/retrofw/emus/sms_sdl/sms_sdl
clock=600
selectordir=/home/retrofw/roms
selectorfilter=.sms,.bin,.gg,.zip,.rom,.sg,.col,.ggsms' > home/retrofw/apps/gmenu2x/sections/emulators/sms_sdl
tar -czvf control.tar.gz control --owner=0 --group=0
tar -czvf data.tar.gz home --owner=0 --group=0
ar rv ../sms_sdl.ipk control.tar.gz data.tar.gz debian-binary
cd ..
rm -r ipkg