Hace algunos días observaba como mi sobrina bailaba con algunos vídeos de Youtube, inmediatamente me pregunte si existía algún juego de baile para Linux, y buscando llegue a Stepmania, un juego para grandes y niños que puede alegrar nuestro día o compartir una tarde en familia.
Vamos al grano
¿Cómo instalarlo en Ubuntu?
Desafortunadamente no existe un .deb o un ppa de Stepmania. ¿Pero que tal si empaquetamos Stepmania fácilmente? Te aventuras?
Abriendo una terminal (Ctrl+Alt+T)
Instalamos dependencias para poder compilar el código fuente.
sudo apt-get install libasound2-dev libpulse-dev libmad0-dev libtheora-dev libvorbis-dev libpng-dev libjpeg-dev libglu1-mesa-dev libgl1-mesa-dev xorg-dev libxrandr-dev libbz2-dev libglew1.5-dev glew-utils libglew-dev libglewmx-dev libgtk2.0-dev yasm automake libtool gettext git
Instalamos dependencias para poder crear nuestro .deb
sudo apt-get -y install ruby-dev rpm git
sudo gem install fpm
Descargamos el código fuente
wget -c https://github
.com/stepmania/stepmania/releases/download/v5.0.6/stepmania-5.0.6.tar.gz
Extraemos el código fuente en nuestro directorio temporal
tar zxvf stepmania-5.0.6.tar.gz -C /tmp/
Creamos directorios temporales para trabajar.
mkdir /tmp/installdir
cd /tmp/installdir
Compilamos
cd /tmp/stepmania-5.0.6/
autoreconf -vfi
./configure --prefix=/tmp/installdir/usr/share/games/ --without-ffmpeg
make
* Instalamos en un entorno fakeroot *
make install
cp -ar /tmp/stepmania-5.0.6/icons /tmp/installdir/usr/share/
cp -rf /tmp/stepmania-5.0.6/Songs/* /tmp/installdir/usr/share/games/stepmania-5.0/Songs/
Hacemos el acceso directo
mkdir /tmp/installdir/usr/share/applications/
git clone https://gist.github.com/4be6063d3c1e5966cf31.git && cp -f /tmp/stepmania-5.0.6/4be6063d3c1e5966cf31/stepmania.desktop /tmp/installdir/usr/share/applications/
Creamos el lanzador
mkdir /tmp/installdir/usr/bin/
git clone https://gist.github.com/1ef6c152da402c33c3c6.git && cp -f /tmp/stepmania-5.0.6/1ef6c152da402c33c3c6/stepmania /tmp/installdir/usr/bin/
Le damos permisos al lanzador:
chmod a+x /tmp/installdir/usr/bin/stepmania
Creacion del .deb.
cd ..
fpm -s dir -t deb -p stepmania-VERSION_ARCH.deb -n stepmania -v 5.0.6 -m "Packer Team " --vendor "unknown" --license "MIT" --url http://www.stepmania.com --description "Dance and rhythm game with 3D graphics and dance pad support" -d libasound2 -d libpulse0 -d libmad0 -d libtheora0 -d libvorbis0a -d libpng12-0 -d libjpeg-turbo8 -d libglu1-mesa -d xorg -d libxrandr2 -d libbz2-1.0 -d libglew1.10 -d libglewmx1.10 -d libgtk2.0-0 -C /tmp/installdir usr/
Instalación
Fedora
dnf -y install wget
wget -P /etc/yum.repos.d/ https://raw.github.com/kuboosoft/postinstallerf/master/postinstallerf.repo
dnf -y install stepmania
Arch Linux
yaourt -S stepmania-git
Fuente: kuboosoft