From c49bba7e2bdadbbf5b977e43885c8417e2021851 Mon Sep 17 00:00:00 2001 From: Mihail Ivanchev Date: Fri, 9 Feb 2024 16:10:20 +0100 Subject: [PATCH] devilutionX: update to 1.5.2 --- srcpkgs/devilutionX/template | 73 ++++++++++++++++++++++++++++++++---- 1 file changed, 66 insertions(+), 7 deletions(-) diff --git a/srcpkgs/devilutionX/template b/srcpkgs/devilutionX/template index ad911b48f8631c..54a9c17a41f610 100644 --- a/srcpkgs/devilutionX/template +++ b/srcpkgs/devilutionX/template @@ -1,20 +1,79 @@ # Template file for 'devilutionX' pkgname=devilutionX -version=1.4.1 -revision=3 +version=1.5.2 +revision=1 +_assets_version=4 +_simpleini_version=4.22 +_simpleini_wrksrc="${XBPS_SRCDISTDIR}/simpleini-${_simpleini_version}" +_sdl_audiolib_hash=cc1bb6af8d4cf5e200259072bde1edd1c8c5137e +_sdl_audiolib_wrksrc="${XBPS_SRCDISTDIR}/sdl_audiolib-${_sdl_audiolib_hash}" build_style=cmake -configure_args="-DVERSION_NUM=$version -DDISABLE_ZERO_TIER=ON" +configure_args="-DVERSION_NUM=$version -DDISABLE_ZERO_TIER=ON -DSIMPLEINI_INCLUDE_DIRS=${_simpleini_wrksrc}" hostmakedepends="pkg-config" makedepends="SDL2-devel SDL2_image-devel bzip2-devel libsodium-devel gtest-devel fmt-devel zlib-devel" short_desc="Diablo I engine for modern operating systems" maintainer="MarcoAPC " -license="Unlicense" +license="custom:Sustainable Use License" homepage="https://github.com/diasurgical/devilutionX" changelog="https://raw.githubusercontent.com/diasurgical/devilutionX/master/docs/CHANGELOG.md" -distfiles="https://github.com/diasurgical/devilutionX/releases/download/${version}/devilutionx-src.tar.xz" -checksum=f80a5414bb7b5a5ae9f6dbc69cec4ae080c29dd0a8a553cedd405d631011da9f +distfiles="https://github.com/diasurgical/devilutionX/releases/download/${version}/devilutionx-src.tar.xz + https://github.com/brofield/simpleini/archive/refs/tags/v${_simpleini_version}.tar.gz + https://github.com/realnc/SDL_audiolib/archive/${_sdl_audiolib_hash}.tar.gz + https://github.com/diasurgical/devilutionx-assets/releases/download/v${_assets_version}/spawn.mpq" +checksum="27dc99cb8b40cb6fccbb5935aac7ce0c906664cc3815bcf9e27195747db46ed3 + b3a4b8f9e03aabd491aa55fd57457115857b9b9c7ecf4abf7ff035ca9d026eb8 + 5adc71bee3506b16c505c1662da73fcfdfd878914645784f80fc70db979533a5 + 64427cd7c1ba904eaa2e0031c16a6b136d0ecef9abc888c5ff8344b459356e38" +skip_extraction="v${_simpleini_version}.tar.gz + ${_sdl_audiolib_hash}.tar.gz + spawn.mpq" + + +post_extract() { + vsrcextract -C "${_simpleini_wrksrc}" v${_simpleini_version}.tar.gz + vsrcextract -C "${_sdl_audiolib_wrksrc}" ${_sdl_audiolib_hash}.tar.gz +} + +pre_configure() { + cd "${_simpleini_wrksrc}" + cmake . -B build -DSIMPLEINI_USE_SYSTEM_GTEST=ON + cmake --build build + + cd "${_sdl_audiolib_wrksrc}" + cmake . -B build -DCMAKE_INSTALL_PREFIX="${_sdl_audiolib_wrksrc}-install" \ + -DBUILD_SHARED_LIBS=OFF \ + -DWITH_SYSTEM_FMTLIB=ON \ + -DUSE_RESAMP_SRC=OFF \ + -DUSE_RESAMP_SOXR=OFF \ + -DDISABLE_EXCEPTIONS=ON \ + -DUSE_DEC_DRWAV=ON \ + -DUSE_DEC_DRFLAC=OFF \ + -DUSE_DEC_OPENMPT=OFF \ + -DUSE_DEC_XMP=OFF \ + -DUSE_DEC_MODPLUG=OFF \ + -DUSE_DEC_MPG123=OFF \ + -DUSE_DEC_SNDFILE=OFF \ + -DUSE_DEC_LIBVORBIS=OFF \ + -DUSE_DEC_LIBOPUSFILE=OFF \ + -DUSE_DEC_FLAC=OFF \ + -DUSE_DEC_MUSEPACK=OFF \ + -DUSE_DEC_FLUIDSYNTH=OFF \ + -DUSE_DEC_BASSMIDI=OFF \ + -DUSE_DEC_WILDMIDI=OFF \ + -DUSE_DEC_ADLMIDI=OFF \ + -DUSE_DEC_DRMP3=ON + cmake --build build + cmake --install build + + PKG_CONFIG_PATH="${_sdl_audiolib_wrksrc}-install/lib64/pkgconfig:${XBPS_CROSS_BASE}/usr/lib/pkgconfig:${XBPS_CROSS_BASE}/usr/share/pkgconfig" + export PKG_CONFIG_PATH +} + +pre_check() { + mv "${XBPS_SRCDISTDIR}/${pkgname}-${version}/spawn.mpq" build/ +} post_install() { - vlicense LICENSE + vlicense LICENSE.md }