package/ascii-invaders: Add the game ascii-invaders
An ASCII-art game like Space Invaders using ncurses. Signed-off-by: Thomas Huth <huth@tuxfamily.org> Reviewed-by: Gilles Talis <gilles.talis@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
9609a7c2c2
commit
c63f804bff
|
@ -2207,6 +2207,9 @@ F: support/scripts/size-stats
|
|||
F: utils/size-stats-compare
|
||||
F: toolchain/
|
||||
|
||||
N: Thomas Huth <huth@tuxfamily.org>
|
||||
F: package/ascii-invaders/
|
||||
|
||||
N: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
F: arch/Config.in.arm
|
||||
F: boot/boot-wrapper-aarch64/
|
||||
|
|
|
@ -245,6 +245,7 @@ comment "Themes"
|
|||
endmenu
|
||||
|
||||
menu "Games"
|
||||
source "package/ascii-invaders/Config.in"
|
||||
source "package/chocolate-doom/Config.in"
|
||||
source "package/doom-wad/Config.in"
|
||||
source "package/flare-engine/Config.in"
|
||||
|
|
7
package/ascii-invaders/Config.in
Normal file
7
package/ascii-invaders/Config.in
Normal file
|
@ -0,0 +1,7 @@
|
|||
config BR2_PACKAGE_ASCII_INVADERS
|
||||
bool "ascii_invaders"
|
||||
select BR2_PACKAGE_NCURSES
|
||||
help
|
||||
An ASCII-art game like Space Invaders using ncurses.
|
||||
|
||||
https://github.com/macdice/ascii-invaders
|
5
package/ascii-invaders/ascii-invaders.hash
Normal file
5
package/ascii-invaders/ascii-invaders.hash
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Locally calculated
|
||||
sha512 326708ffc2c277e04575920c58f6a267e0bf46f8d2a3dbca9b5c317fb01006d4f673ab35f92f292549cc52dbee4400a84c85478eb81b9bd7703689a705547bc7 v1.0.1.tar.gz
|
||||
|
||||
# Hash for license file
|
||||
sha512 1e455684996d7733b2f1ccd4606d034694d16ceff6ede6125d7f1537d20dabe05976cca4cef5cbf6c31352cbd62a515fd8e34a2ffb54dae1181c1116b24c6cf7 LICENSE
|
28
package/ascii-invaders/ascii-invaders.mk
Normal file
28
package/ascii-invaders/ascii-invaders.mk
Normal file
|
@ -0,0 +1,28 @@
|
|||
################################################################################
|
||||
#
|
||||
# ASCII-Invaders
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ASCII_INVADERS_VERSION = v1.0.1
|
||||
ASCII_INVADERS_SOURCE = $(ASCII_INVADERS_VERSION).tar.gz
|
||||
ASCII_INVADERS_SITE = $(call github,macdice,ascii-invaders,$(ASCII_INVADERS_VERSION))
|
||||
ASCII_INVADERS_DEPENDENCIES = ncurses
|
||||
ASCII_INVADERS_LICENSE = GPL-2.0+
|
||||
ASCII_INVADERS_LICENSE_FILES = LICENSE
|
||||
|
||||
# For compiling statically, libraries must be specified after the object file
|
||||
define ASCII_INVADERS_POST_EXTRACT_FIXUP
|
||||
sed -i 's/\$$(LIBS) invaders.o/invaders.o \$$(LIBS)/' $(@D)/Makefile
|
||||
endef
|
||||
ASCII_INVADERS_POST_EXTRACT_HOOKS += ASCII_INVADERS_POST_EXTRACT_FIXUP
|
||||
|
||||
define ASCII_INVADERS_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define ASCII_INVADERS_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/ascii_invaders $(TARGET_DIR)/usr/bin/ascii_invaders
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
Loading…
Reference in a new issue