install tetris in archlinux tty
Pre
vitetris is a Virtual terminal tetris clone, you could play it in the tty, it even support two palyers at the same time.
in macOS the installation goes fine with homebrew, while the situation is not good at the archlinux.
you can install it using yay which is a package manager based on the AUR(Archlinux User Repository), bucause it’s not included in the official pacman.
Issue
but the sources in the aur has some problem, you may can’t pass the comilation and building.
Solution
searching on the aur, and found the vitetris’s PKGBUILD has some problems blocking build steps.
It seems like printf needs a string format, so I add this line to the end of prepare() in PKGBUILD. It successfully builds with this fix.
sed -i 's|ctime(&t)|"%s", &|' src/netw/gameserver.c
ref: vitetris in aur
so fix it in PKGBUILD, and rebuild it, then install it.
Step
fix the PKGBUILD
fix it in PKGBUILD
1 | # ~/.cache/yay/vitetris |
rebuild & install it.
1 | makepkg -si |
play
run it with vitetris