2024-05-11 18:12:43 +00:00
|
|
|
UBUNTUTOUCH_DIR = $(PLATFORM_DIR)/ubuntu-touch
|
|
|
|
UBUNTUTOUCH_SDL_DIR = $(UBUNTUTOUCH_DIR)/ubuntu-touch-sdl
|
|
|
|
|
|
|
|
update: all
|
|
|
|
# ensure that the binaries were built for ARM
|
2024-07-30 23:55:35 +00:00
|
|
|
file --dereference $(INSTALL_DIR)/koreader/luajit | grep ARM
|
2024-05-11 18:12:43 +00:00
|
|
|
# remove old package if any
|
|
|
|
rm -f koreader-ubuntu-touch-$(MACHINE)-$(VERSION).click
|
2024-07-30 23:55:32 +00:00
|
|
|
$(SYMLINK) $(UBUNTUTOUCH_DIR)/koreader.sh $(INSTALL_DIR)/koreader/
|
|
|
|
$(SYMLINK) $(UBUNTUTOUCH_DIR)/manifest.json $(INSTALL_DIR)/koreader/
|
|
|
|
$(SYMLINK) $(UBUNTUTOUCH_DIR)/koreader.apparmor $(INSTALL_DIR)/koreader/
|
|
|
|
$(SYMLINK) $(UBUNTUTOUCH_DIR)/koreader.apparmor.openstore $(INSTALL_DIR)/koreader/
|
|
|
|
$(SYMLINK) $(UBUNTUTOUCH_DIR)/koreader.desktop $(INSTALL_DIR)/koreader/
|
|
|
|
$(SYMLINK) $(UBUNTUTOUCH_DIR)/koreader.png $(INSTALL_DIR)/koreader/
|
|
|
|
$(SYMLINK) $(UBUNTUTOUCH_DIR)/libSDL2.so $(INSTALL_DIR)/koreader/libs/
|
2024-05-11 18:12:43 +00:00
|
|
|
# create new package
|
|
|
|
cd $(INSTALL_DIR) && pwd && \
|
|
|
|
zip -9 -r \
|
|
|
|
../koreader-$(DIST)-$(MACHINE)-$(VERSION).zip \
|
|
|
|
koreader -x "koreader/resources/fonts/*" "koreader/ota/*" \
|
|
|
|
"koreader/resources/icons/src/*" "koreader/spec/*" \
|
|
|
|
$(ZIP_EXCLUDE)
|
|
|
|
# generate ubuntu touch click package
|
|
|
|
rm -rf $(INSTALL_DIR)/tmp && mkdir -p $(INSTALL_DIR)/tmp
|
|
|
|
cd $(INSTALL_DIR)/tmp && \
|
|
|
|
unzip ../../koreader-$(DIST)-$(MACHINE)-$(VERSION).zip && \
|
|
|
|
click build koreader && \
|
|
|
|
mv *.click ../../koreader-$(DIST)-$(MACHINE)-$(VERSION).click
|
|
|
|
|
2024-05-29 18:15:29 +00:00
|
|
|
PHONY += update
|