Added ST-SDL terminal as a package

This commit is contained in:
DrUm78 2023-08-12 15:32:10 +02:00
parent e2fa5930a0
commit 3fb400facd
5 changed files with 50 additions and 0 deletions

View File

@ -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"

View File

@ -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

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=ST-SDL
Comment=ST Terminal
Exec=/usr/bin/st
Icon=st
Categories=applications

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -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))