Update package version to 0.7.0
This commit is contained in:
@@ -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:
|
||||
- [email protected]
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user