# Description: A classic 2D jump'n run sidescroller game # URL: https://www.supertux.org # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: boost brotli freetype glew glm libpsl libvorbis openal openldap rtmpdump sdl2_image name=supertux version=0.6.3 release=2 source=(https://github.com/SuperTux/supertux/releases/download/v${version}/SuperTux-v${version}-Source.tar.gz gcc12.patch game_session.patch) build() { cd SuperTux-v${version}-Source patch -Np1 -i $SRC/gcc12.patch patch -Np1 -i $SRC/game_session.patch mkdir -p build cd build cmake \ -D CMAKE_C_FLAGS:STRING="$CFLAGS" \ -D CMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \ -D CMAKE_INSTALL_PREFIX=/usr \ -D INSTALL_SUBDIR_BIN=bin \ -D INSTALL_SUBDIR_SHARE=share/$name \ -D CMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG rm -rf $PKG/usr/share/{doc,supertux/locale} find $PKG/ -name *.po -delete find $PKG/ -name "*README*" -delete find $PKG/ -name "*AUTHORS*" -delete }