Switch to new download format and rebuild with libheif and automatic stripping

This commit is contained in:
2025-10-28 14:24:04 +02:00
parent d61f5fe8b2
commit 9700d449d3
2 changed files with 14 additions and 12 deletions
+14 -2
View File
@@ -1,9 +1,21 @@
name: gd name: gd
description: Open source code library for the dynamic creation of images description: Open source code library for the dynamic creation of images
version: 2.3.3 version: 2.3.3
revision: 2
url: https://libgd.github.io/ url: https://libgd.github.io/
license: custom license: custom
architecture: any architecture: any
depends: ["fontconfig","libavif","libwebp","libxpm"]
optional_depends: ["perl"]
type: source 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
-10
View File
@@ -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 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 # 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 # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {