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 }