[openwrt/openwrt] tools: libdeflate: fetch source as tarball
LEDE Commits
lede-commits at lists.infradead.org
Sat Apr 6 02:24:33 PDT 2024
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/4c7591c426f562c0705e4e0966356345d0b6cbb7
commit 4c7591c426f562c0705e4e0966356345d0b6cbb7
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Thu Apr 4 11:14:55 2024 +0200
tools: libdeflate: fetch source as tarball
libdeflate is currently intentionally being fetched via GIT.
However, with the move to using ZSTD to compress the cloned GIT repo
tarballs it means that we would first need to compile ZSTD.
But that means that we need to be able to unpack gzipped tarballs first
which we currently do by using libdeflate-gzip.
So, in order to do so lets fetch libdeflate as a tarball, use gzip to
extract it and then use libdeflate as regular for all other tools.
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
tools/libdeflate/Makefile | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/tools/libdeflate/Makefile b/tools/libdeflate/Makefile
index 5da6c693ea..fbf8bde984 100644
--- a/tools/libdeflate/Makefile
+++ b/tools/libdeflate/Makefile
@@ -10,13 +10,14 @@ PKG_NAME:=libdeflate
PKG_VERSION:=1.19
PKG_RELEASE:=1
-PKG_SOURCE_URL:=https://github.com/ebiggers/libdeflate.git
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_VERSION:=v$(PKG_VERSION)
-PKG_MIRROR_HASH:=5aac9801815384a5e417c8345d25d07547648e28403566ef73a46295ec26b6c4
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/ebiggers/libdeflate/releases/download/v$(PKG_VERSION)
+PKG_HASH:=d9bb9bdd8cc5a8c1f7f6226fa0053dd72861e15f366e7ff7d0d191eac16d66f3
include $(INCLUDE_DIR)/host-build.mk
+DECOMPRESS_CMD:=$(STAGING_DIR_HOST)/bin/gzip -dc $(DL_DIR)/$(PKG_SOURCE) |
+
define Host/Compile
$(HOSTCC_NOCACHE) $(HOST_CFLAGS) $(HOST_LDFLAGS) \
$(HOST_BUILD_DIR)/lib/*{,/*}.c \
More information about the lede-commits
mailing list