From 4f53d2174ceb1e3c719b0d34e83b0be90df84971 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sun, 22 Mar 2026 13:52:58 +0200 Subject: [PATCH] Update package version to 0.7.0 --- pkg.info | 27 ++++++++++++++++++++++++--- source.sh | 33 +++++++-------------------------- 2 files changed, 31 insertions(+), 29 deletions(-) diff --git a/pkg.info b/pkg.info index c2cdefe..51c66e7 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,30 @@ name: supertux description: Jump'n'run game with strong inspiration from classic 2D side-scroller games -version: 0.6.3 +version: 0.7.0 +revision: 1 url: https://www.supertux.org/ license: GPL3-or-later,CC-BY-SA-3.0,CC-BY-SA-4.0,CC-BY-3.0 +maintainers: + - enumdev@enumerated.dev architecture: any -depends: ["boost","curl",'freetype2',"glew","hicolor-icon-theme","libvorbis","openal","physfs","sdl2-image"] -make_depends: ["cmake","glm","mesa"] type: source +depends: + - boost + - curl + - fmt + - freetype2 + - glew + - hicolor-icon-theme + - libvorbis + - openal + - physfs + - sdl2-image +make_depends: + - cmake + - glm + - mesa +downloads: + - url: https://github.com/SuperTux/supertux/releases/download/v${BPM_PKG_VERSION}/SuperTux-v${BPM_PKG_VERSION}-Source.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 32fc5b99b9994ed58e58341d6f21de925764b381256e108591136de53bc31da5 diff --git a/source.sh b/source.sh index b5d825c..bd4b220 100644 --- a/source.sh +++ b/source.sh @@ -2,40 +2,21 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -DOWNLOAD="https://github.com/SuperTux/supertux/releases/download/v${BPM_PKG_VERSION}/SuperTux-v${BPM_PKG_VERSION}-Source.tar.gz" -FILENAME="${DOWNLOAD##*/}" - -# The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location -prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" - - cd "$BPM_SOURCE" - sed -i '/cmake_minimum_require/s/[(].*[)]/(VERSION 3.30)/' external/*/CMakeLists.txt - # Fix compiler errors - patch -Np1 -i "$BPM_WORKDIR"/gcc-12.patch - patch -Np1 -i "$BPM_WORKDIR"/gcc-14.patch - # Fix boost library not found errors - patch -Np1 -i "$BPM_WORKDIR"/no-boost.patch -} - # The build function is executed in the source directory # This function is used to compile the source code build() { - mkdir build - cd build - - cmake -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_DISCORD=ON -DINSTALL_SUBDIR_BIN=bin -DCMAKE_POLICY_VERSION_MINIMUM=3.5 .. - cmake --build . + cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_DISCORD=ON \ + -DINSTALL_SUBDIR_BIN=bin \ + -DCMAKE_POLICY_VERSION_MINIMUM=3.5 + cmake --build build } # The package function is executed in the source directory # This function is used to move the compiled files into the output directory package() { - cd build - - DESTDIR="$BPM_OUTPUT" cmake --install . + DESTDIR="$BPM_OUTPUT" cmake --install build # Install package license install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/supertux/LICENSE.txt