mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 15:48:51 +01:00
Added ST-SDL terminal as a package
This commit is contained in:
parent
e2fa5930a0
commit
3fb400facd
@ -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"
|
||||
|
||||
9
FunKey/package/st-sdl/Config.in
Normal file
9
FunKey/package/st-sdl/Config.in
Normal 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
|
||||
6
FunKey/package/st-sdl/opk/st.funkey-s.desktop
Normal file
6
FunKey/package/st-sdl/opk/st.funkey-s.desktop
Normal file
@ -0,0 +1,6 @@
|
||||
[Desktop Entry]
|
||||
Name=ST-SDL
|
||||
Comment=ST Terminal
|
||||
Exec=/usr/bin/st
|
||||
Icon=st
|
||||
Categories=applications
|
||||
BIN
FunKey/package/st-sdl/opk/st.png
Normal file
BIN
FunKey/package/st-sdl/opk/st.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
34
FunKey/package/st-sdl/st-sdl.mk
Normal file
34
FunKey/package/st-sdl/st-sdl.mk
Normal 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))
|
||||
Loading…
x
Reference in New Issue
Block a user