mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
parent
6e1941d07e
commit
b38992d4f9
1 changed files with 35 additions and 6 deletions
|
@ -2,12 +2,12 @@
|
||||||
# based on https://raw.githubusercontent.com/AluisioASG/void-packages/openrct2/srcpkgs/OpenRCT2/template
|
# based on https://raw.githubusercontent.com/AluisioASG/void-packages/openrct2/srcpkgs/OpenRCT2/template
|
||||||
# and https://github.com/void-linux/void-packages/issues/1014#issuecomment-417372421
|
# and https://github.com/void-linux/void-packages/issues/1014#issuecomment-417372421
|
||||||
pkgname=OpenRCT2
|
pkgname=OpenRCT2
|
||||||
version=0.4.16
|
version=0.4.17
|
||||||
revision=1
|
revision=1
|
||||||
# versions pulled from https://raw.githubusercontent.com/OpenRCT2/OpenRCT2/v${version}/CMakeLists.txt
|
# versions pulled from https://raw.githubusercontent.com/OpenRCT2/OpenRCT2/v${version}/CMakeLists.txt
|
||||||
_objects_version=1.4.10
|
_objects_version=1.4.11
|
||||||
_titles_version=0.4.14
|
_titles_version=0.4.14
|
||||||
_replays_version=0.0.83
|
_replays_version=0.0.84
|
||||||
_opensfx_version=1.0.5
|
_opensfx_version=1.0.5
|
||||||
_openmsx_version=1.6
|
_openmsx_version=1.6
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
|
@ -40,11 +40,11 @@ distfiles="https://github.com/OpenRCT2/OpenRCT2/archive/v${version}.tar.gz
|
||||||
https://github.com/OpenRCT2/OpenMusic/releases/download/v${_openmsx_version}/openmusic.zip>openmusic-${_openmsx_version}.zip
|
https://github.com/OpenRCT2/OpenMusic/releases/download/v${_openmsx_version}/openmusic.zip>openmusic-${_openmsx_version}.zip
|
||||||
https://github.com/OpenRCT2/replays/releases/download/v${_replays_version}/replays.zip>replays-${_replays_version}.zip
|
https://github.com/OpenRCT2/replays/releases/download/v${_replays_version}/replays.zip>replays-${_replays_version}.zip
|
||||||
https://github.com/OpenRCT2/title-sequences/releases/download/v${_titles_version}/title-sequences.zip>title-sequences-${_titles_version}.zip"
|
https://github.com/OpenRCT2/title-sequences/releases/download/v${_titles_version}/title-sequences.zip>title-sequences-${_titles_version}.zip"
|
||||||
checksum="798b2f37577060d62497a0260dcabf446d06fb11deeb255d0478af37b9dc176e
|
checksum="991c4a3eb599439e09715bd36ea0de42a11215edff4e5576304dc38524a6ab8d
|
||||||
186a05c91b9a6c328ad0994454033434fe864a8606c1d126485f7469a8e5539c
|
fd0fed611565710f79b136958100362a8c37211467f74b85126a3a2ea35e4f78
|
||||||
a952148be164c128e4fd3aea96822e5f051edd9a0b1f2c84de7f7628ce3b2e18
|
a952148be164c128e4fd3aea96822e5f051edd9a0b1f2c84de7f7628ce3b2e18
|
||||||
f097d3a4ccd39f7546f97db3ecb1b8be73648f53b7a7595b86cccbdc1a7557e4
|
f097d3a4ccd39f7546f97db3ecb1b8be73648f53b7a7595b86cccbdc1a7557e4
|
||||||
c0b3e33874e43d963b780bcae3eb19ce902364c861e47f1be025248251beb5ed
|
de798331dfee60dbd12c01adb70dc12d01271365dfbe84ce529bf341b7b2f0f8
|
||||||
140df714e806fed411cc49763e7f16b0fcf2a487a57001d1e50fce8f9148a9f3"
|
140df714e806fed411cc49763e7f16b0fcf2a487a57001d1e50fce8f9148a9f3"
|
||||||
skip_extraction="objects-${_objects_version}.zip
|
skip_extraction="objects-${_objects_version}.zip
|
||||||
opensound-${_opensfx_version}.zip
|
opensound-${_opensfx_version}.zip
|
||||||
|
@ -105,6 +105,35 @@ post_patch() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_check_versions() {
|
||||||
|
local version_var="$1"
|
||||||
|
local expected_version="$2"
|
||||||
|
|
||||||
|
local actual_version=$(grep "set(${version_var}" CMakeLists.txt | sed -E 's/.*"([0-9.]+)".*/\1/')
|
||||||
|
|
||||||
|
if [ "$actual_version" != "$expected_version" ]; then
|
||||||
|
echo "Warning: ${version_var} mismatch"
|
||||||
|
echo "Expected: $expected_version"
|
||||||
|
echo "Actual: $actual_version"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
local mismatch=0
|
||||||
|
_check_versions "OBJECTS_VERSION" "$_objects_version" || mismatch=1
|
||||||
|
_check_versions "TITLE_SEQUENCE_VERSION" "$_titles_version" || mismatch=1
|
||||||
|
_check_versions "REPLAYS_VERSION" "$_replays_version" || mismatch=1
|
||||||
|
_check_versions "OPENSFX_VERSION" "$_opensfx_version" || mismatch=1
|
||||||
|
_check_versions "OPENMSX_VERSION" "$_openmsx_version" || mismatch=1
|
||||||
|
|
||||||
|
if [ $mismatch -eq 1 ]; then
|
||||||
|
echo "Version mismatch detected. Please update the template with the correct versions."
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# remove useless static lib
|
# remove useless static lib
|
||||||
rm "${DESTDIR}/usr/lib/libopenrct2.a"
|
rm "${DESTDIR}/usr/lib/libopenrct2.a"
|
||||||
|
|
Loading…
Add table
Reference in a new issue