package/tetris: new package

Small easter egg for presentations, demos, etc.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-01-25 19:57:32 +01:00
parent 028298714a
commit 08cd175cfc
6 changed files with 40 additions and 0 deletions
+1
View File
@@ -99,4 +99,5 @@ BR2_PACKAGE_FINIT_PLUGIN_RTC=y
BR2_PACKAGE_FINIT_PLUGIN_TTY=y
BR2_PACKAGE_FINIT_PLUGIN_URANDOM=y
BR2_PACKAGE_IFUPDOWN_NG=y
BR2_PACKAGE_TETRIS=y
BR2_PACKAGE_QUERIERD=y
+1
View File
@@ -98,6 +98,7 @@ BR2_PACKAGE_FINIT_PLUGIN_RTC=y
BR2_PACKAGE_FINIT_PLUGIN_TTY=y
BR2_PACKAGE_FINIT_PLUGIN_URANDOM=y
BR2_PACKAGE_IFUPDOWN_NG=y
BR2_PACKAGE_TETRIS=y
BR2_PACKAGE_QUERIERD=y
QEMU_ROOTFS_VSCSI=y
QEMU_NET_TAP=y
+1
View File
@@ -5,4 +5,5 @@ source "$BR2_EXTERNAL_INFIX_PATH/package/ifupdown-ng/Config.in"
source "$BR2_EXTERNAL_INFIX_PATH/package/mdnsd/Config.in"
source "$BR2_EXTERNAL_INFIX_PATH/package/python-templating/Config.in"
source "$BR2_EXTERNAL_INFIX_PATH/package/skeleton-init-finit/Config.in"
source "$BR2_EXTERNAL_INFIX_PATH/package/tetris/Config.in"
source "$BR2_EXTERNAL_INFIX_PATH/package/querierd/Config.in"
+11
View File
@@ -0,0 +1,11 @@
config BR2_PACKAGE_TETRIS
bool "tetris - Micro Tetris"
help
One of the smallest Tetris implementations in the world!
Utilizing only ANSI escape sequences to draw the board, no external
library dependencies other than a standard C library, like uClibc or
musl libc. Hence, very suitable for embedded devices in need of an
easter egg ;-)
https://troglobit.com/tetris.html
+5
View File
@@ -0,0 +1,5 @@
# From https://github.com/troglobit/tetris/releases/
sha256 2c6e17f927d4b73dca97c7d280d3848a515a87ca70ecdf072808561e47bf757c tetris-1.4.0.tar.gz
# Locally calculated
sha256 a84e2b5247b2013a69496eecdd16e6051c04f1f3cb259b5f6ca8e671101a1f94 LICENSE
+21
View File
@@ -0,0 +1,21 @@
################################################################################
#
# tetris
#
################################################################################
TETRIS_VERSION = 1.4.0
TETRIS_SITE = https://github.com/troglobit/tetris/releases/download/$(TETRIS_VERSION)
TETRIS_LICENSE = ISC
TETRIS_LICENSE_FILES = LICENSE
TETRIS_INSTALL_STAGING = YES
define TETRIS_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) all
endef
define TETRIS_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/tetris $(TARGET_DIR)/usr/bin/tetris
endef
$(eval $(generic-package))