Update qrencode to 4.1.1

This commit is contained in:
root
2026-05-03 02:14:19 +00:00
parent b7c43274d6
commit 8bc6b03ebb
4 changed files with 16 additions and 29 deletions
+8 -22
View File
@@ -91,19 +91,12 @@ install-prefix: $(packages)
@rm -rf "$(host_prefix)"
@mkdir -p "$(host_prefix)"
@set -euo pipefail; \
shopt -s nullglob; \
for p in $(packages); do \
artifacts=( "$(BASE_CACHE)/$(HOST)/$$p/"*.tar.gz ); \
if (( $${#artifacts[@]} == 0 )); then \
echo "ERROR: expected a built artifact for $$p under $(BASE_CACHE)/$(HOST)/$$p"; \
for f in $(foreach p,$(packages),$($(p)_cached)); do \
p="$$(basename "$$(dirname "$$f")")"; \
if [[ ! -f "$$f" ]]; then \
echo "ERROR: expected current built artifact for $$p: $$f"; \
exit 1; \
fi; \
if (( $${#artifacts[@]} > 1 )); then \
echo "WARN: multiple built artifacts for $$p; using newest by modification time"; \
fi; \
IFS=$$'\n' sorted=( $$(ls -t "$${artifacts[@]}") ); \
unset IFS; \
f="$${sorted[0]}"; \
echo " - $$p: $$f"; \
tar --no-same-owner -xzf "$$f" -C "$(host_prefix)"; \
done
@@ -112,19 +105,12 @@ ifneq ($(native_packages),)
@rm -rf "$(build_prefix)"
@mkdir -p "$(build_prefix)"
@set -euo pipefail; \
shopt -s nullglob; \
for p in $(native_packages); do \
artifacts=( "$(BASE_CACHE)/$(HOST)/$$p/"*.tar.gz ); \
if (( $${#artifacts[@]} == 0 )); then \
echo "ERROR: expected a built artifact for $$p under $(BASE_CACHE)/$(HOST)/$$p"; \
for f in $(foreach p,$(native_packages),$($(p)_cached)); do \
p="$$(basename "$$(dirname "$$f")")"; \
if [[ ! -f "$$f" ]]; then \
echo "ERROR: expected current native built artifact for $$p: $$f"; \
exit 1; \
fi; \
if (( $${#artifacts[@]} > 1 )); then \
echo "WARN: multiple built artifacts for $$p; using newest by modification time"; \
fi; \
IFS=$$'\n' sorted=( $$(ls -t "$${artifacts[@]}") ); \
unset IFS; \
f="$${sorted[0]}"; \
echo " - $$p: $$f"; \
tar --no-same-owner -xzf "$$f" -C "$(build_prefix)"; \
done
+6 -6
View File
@@ -1,16 +1,16 @@
package=qrencode
$(package)_version=3.4.4
$(package)_download_path=https://fukuchi.org/works/qrencode/
$(package)_file_name=$(package)-$($(package)_version).tar.bz2
$(package)_sha256_hash=efe5188b1ddbcbf98763b819b146be6a90481aac30cfc8d858ab78a19cde1fa5
$(package)_version=4.1.1
$(package)_download_path=https://github.com/fukuchi/libqrencode/archive/v$($(package)_version)/
$(package)_file_name=lib$(package)-$($(package)_version).tar.gz
$(package)_sha256_hash=5385bc1b8c2f20f3b91d258bf8ccc8cf62023935df2d2676b5b67049f31a049c
define $(package)_set_vars
$(package)_config_opts=--disable-shared -without-tools --disable-sdltest
$(package)_config_opts=--disable-shared --without-tools
$(package)_config_opts_linux=--with-pic
endef
define $(package)_preprocess_cmds
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub use
./autogen.sh && cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub .
endef
define $(package)_config_cmds