From 2c90b8fdee4a89d124ae04f2a6f8f82c5b7444fc Mon Sep 17 00:00:00 2001 From: EnumDev Date: Thu, 16 Oct 2025 22:12:34 +0300 Subject: [PATCH] Switch to new download format and raise version number --- pkg.info | 14 ++++++++++++-- source.sh | 8 +------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/pkg.info b/pkg.info index e46a19e..ddd44d4 100644 --- a/pkg.info +++ b/pkg.info @@ -1,8 +1,18 @@ name: sdl-sound -description: An abstract soundfile decoder +description: An abstract soundfile decoder version: 1.0.3 +revision: 2 url: https://github.com/icculus/SDL_sound license: LGPL2.1-or-later architecture: any -depends: ["flac","libvorbis","sdl12-compat","speex"] type: source +depends: + - flac + - libvorbis + - sdl12-compat + - speex +downloads: + - url: https://github.com/icculus/SDL_sound/archive/refs/tags/release-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 5e20c780653fa14b7b3dc299dfcd91b546c75d0abb8043da5178e8b91c765d61 diff --git a/source.sh b/source.sh index ad0e9a7..b87e7e7 100644 --- a/source.sh +++ b/source.sh @@ -2,15 +2,9 @@ # 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/icculus/SDL_sound/archive/refs/tags/release-${BPM_PKG_VERSION}.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 +# This function is used for putting downloaded files to the correct location or applying patches prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" - cd "$BPM_SOURCE" ./bootstrap }