aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorpingflood2019-05-22 16:17:13 -0300
committerpingflood2019-05-22 16:17:13 -0300
commit638ca46071ae8722fdae5ab22e4ea268a0f33786 (patch)
treeedf1795206abc00fd5dfa72d97daaedd7e4feca3 /Makefile
parent29bd94d6fca0b084e8f3a6b9ed19d747a21a5eb8 (diff)
downloadhydracastlelabyrinth-638ca46071ae8722fdae5ab22e4ea268a0f33786.tar.gz
hydracastlelabyrinth-638ca46071ae8722fdae5ab22e4ea268a0f33786.tar.bz2
hydracastlelabyrinth-638ca46071ae8722fdae5ab22e4ea268a0f33786.zip
Make IPK
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c8c14f5..0640de8 100644
--- a/Makefile
+++ b/Makefile
@@ -81,3 +81,14 @@ pack:
clean:
rm src/*.o src/sdl/*.o ${OUTPUT}
+
+ipk: all
+ @rm -rf /tmp/.hcl-ipk/ && mkdir -p /tmp/.hcl-ipk/root/home/retrofw/games/hcl /tmp/.hcl-ipk/root/home/retrofw/apps/gmenu2x/sections/games
+ @cp -r hcl/hcl.elf hcl/hcl.png hcl/data /tmp/.hcl-ipk/root/home/retrofw/games/hcl
+ @cp hcl/hcl.lnk /tmp/.hcl-ipk/root/home/retrofw/apps/gmenu2x/sections/games
+ @sed "s/^Version:.*/Version: $$(date +%Y%m%d)/" hcl/control > /tmp/.hcl-ipk/control
+ @cp hcl/conffiles /tmp/.hcl-ipk/
+ @tar --owner=0 --group=0 -czvf /tmp/.hcl-ipk/control.tar.gz -C /tmp/.hcl-ipk/ control conffiles
+ @tar --owner=0 --group=0 -czvf /tmp/.hcl-ipk/data.tar.gz -C /tmp/.hcl-ipk/root/ .
+ @echo 2.0 > /tmp/.hcl-ipk/debian-binary
+ @ar r hcl/hcl.ipk /tmp/.hcl-ipk/control.tar.gz /tmp/.hcl-ipk/data.tar.gz /tmp/.hcl-ipk/debian-binary