From 9700d449d39d8ea34c0610163dcc34ecea936070 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Tue, 28 Oct 2025 14:24:04 +0200 Subject: [PATCH] Switch to new download format and rebuild with libheif and automatic stripping --- pkg.info | 16 ++++++++++++++-- source.sh | 10 ---------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/pkg.info b/pkg.info index d86f9e1..1424df0 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,21 @@ name: gd description: Open source code library for the dynamic creation of images version: 2.3.3 +revision: 2 url: https://libgd.github.io/ license: custom architecture: any -depends: ["fontconfig","libavif","libwebp","libxpm"] -optional_depends: ["perl"] type: source +depends: + - fontconfig + - libavif + - libheif + - libwebp + - libxpm +optional_depends: + - perl +downloads: + - url: https://github.com/libgd/libgd/archive/gd-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 24429f9d0dbe0f865aaa4b1a63558242396ba9134e6cfd32ca5e486a84483350 diff --git a/source.sh b/source.sh index 194bdf7..25d38c5 100644 --- a/source.sh +++ b/source.sh @@ -2,16 +2,6 @@ # 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/libgd/libgd/archive/gd-${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 -prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" -} - # The build function is executed in the source directory # This function is used to compile the source code build() {