Step6: add python and snake.

Now we have a programming environment and
we have a small game for amusement :).

Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn>
This commit is contained in:
Chen Wang
2025-12-05 16:24:46 +08:00
committed by Chen Wang
parent 083402650e
commit 28320bba62
22 changed files with 1128 additions and 2 deletions

32
package/snake/make.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/usr/bin/bash
source $(dirname "$0")/../common.sh
PKGNAME=snake
PKGVERSION=
PKGSOURCE_DIR=
PKGSOURCE=
PKGBUILDNAME=${PKGNAME}
PKGBUILD_DIR=${BUILD_DIR}/${PKGBUILDNAME}
echo "----> Building ${PKGBUILDNAME} ..."
stamp_downloaded
stamp_extracted
stamp_patched
stamp_configured
stamp_built
step_start install-target
# 传统上用于存放用户游戏的可执行文件(系统安装的游戏)。
mkdir -p ${TARGET_DIR}/usr/games
cp ${PROJECT_DIR}/package/${PKGNAME}/snake.py ${TARGET_DIR}/usr/games/
step_end install-target
stamp_installed
echo "<---- ${PKGBUILDNAME} build complete."