diff --git a/FunKey/Config.in b/FunKey/Config.in index 2f702fc..71d09c8 100644 --- a/FunKey/Config.in +++ b/FunKey/Config.in @@ -20,3 +20,4 @@ source "$BR2_EXTERNAL_FUNKEY_PATH/package/commander/Config.in" source "$BR2_EXTERNAL_FUNKEY_PATH/package/bibi/Config.in" source "$BR2_EXTERNAL_FUNKEY_PATH/package/picoarch/Config.in" source "$BR2_EXTERNAL_FUNKEY_PATH/package/clock/Config.in" +source "$BR2_EXTERNAL_FUNKEY_PATH/package/st-sdl/Config.in" diff --git a/FunKey/package/st-sdl/Config.in b/FunKey/package/st-sdl/Config.in new file mode 100644 index 0000000..fbe0704 --- /dev/null +++ b/FunKey/package/st-sdl/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_ST_SDL + bool "st-sdl" + default y + select BR2_PACKAGE_SDL + help + SDL Terminal for RS97 + + + https://github.com/jamesofarrell/st-sdl diff --git a/FunKey/package/st-sdl/opk/st.funkey-s.desktop b/FunKey/package/st-sdl/opk/st.funkey-s.desktop new file mode 100644 index 0000000..643dc6a --- /dev/null +++ b/FunKey/package/st-sdl/opk/st.funkey-s.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=ST-SDL +Comment=ST Terminal +Exec=/usr/bin/st +Icon=st +Categories=applications diff --git a/FunKey/package/st-sdl/opk/st.png b/FunKey/package/st-sdl/opk/st.png new file mode 100644 index 0000000..c14174e Binary files /dev/null and b/FunKey/package/st-sdl/opk/st.png differ diff --git a/FunKey/package/st-sdl/st-sdl.mk b/FunKey/package/st-sdl/st-sdl.mk new file mode 100644 index 0000000..0dc214a --- /dev/null +++ b/FunKey/package/st-sdl/st-sdl.mk @@ -0,0 +1,34 @@ +################################################################################ +# +# st-sdl +# +################################################################################ + +ST_SDL_VERSION = 2c29ceeb9ec01154d5a80d394446b42b0154d0ec +ST_SDL_SITE_METHOD = git +ST_SDL_SITE = https://github.com/FunKey-Project/st-sdl.git +ST_SDL_LICENSE = GPL-2.1+ +ST_SDL_LICENSE_FILES = LICENSE + +ST_SDL_DEPENDENCIES = sdl + +define ST_SDL_BUILD_CMDS + (cd $(@D); \ + sed -i -e 's|/opt/FunKey-sdk-2.0.0|../../host|g' config_funkey-s.mk; \ + sed -i -e 's|arm-funkey-linux-musleabihf-|arm-linux-|g' config_funkey-s.mk; \ + make \ + ) +endef + +define ST_SDL_INSTALL_TARGET_CMDS + $(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/bin + $(INSTALL) -m 0755 $(@D)/st $(TARGET_DIR)/usr/bin/ +endef + +define ST_SDL_CREATE_OPK + $(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/share/OPKs/Applications + $(HOST_DIR)/usr/bin/mksquashfs $(ST_SDL_PKGDIR)/opk $(TARGET_DIR)/usr/local/share/OPKs/Applications/st-sdl_funkey-s.opk -all-root -noappend -no-exports -no-xattrs +endef +ST_SDL_POST_INSTALL_TARGET_HOOKS += ST_SDL_CREATE_OPK + +$(eval $(generic-package))