| 1 |
package=libsquashfuse |
| 2 |
$(package)_version=0.5.2 |
| 3 |
$(package)_download_path=https://github.com/vasi/squashfuse/releases/download/$($(package)_version) |
| 4 |
$(package)_file_name=squashfuse-$($(package)_version).tar.gz |
| 5 |
$(package)_sha256_hash=54e4baaa20796e86a214a1f62bab07c7c361fb7a598375576d585712691178f5 |
| 6 |
$(package)_dependencies=libfuse zstd |
| 7 |
|
| 8 |
define $(package)_config_cmds |
| 9 |
$($(package)_autoconf) --with-zstd=$(host_prefix) --without-zlib CFLAGS=-no-pie LDFLAGS=-static |
| 10 |
endef |
| 11 |
|
| 12 |
define $(package)_build_cmds |
| 13 |
$(MAKE) |
| 14 |
endef |
| 15 |
|
| 16 |
define $(package)_stage_cmds |
| 17 |
$(MAKE) DESTDIR=$($(package)_staging_dir) install && \ |
| 18 |
mkdir -p $($(package)_staging_prefix_dir)/lib && \ |
| 19 |
mkdir -p $($(package)_staging_prefix_dir)/include/squashfuse && \ |
| 20 |
cp .libs/libfuseprivate.a $($(package)_staging_prefix_dir)/lib/ && \ |
| 21 |
cp .libs/libsquashfuse.a $($(package)_staging_prefix_dir)/lib/ && \ |
| 22 |
cp .libs/libsquashfuse_ll.a $($(package)_staging_prefix_dir)/lib/ && \ |
| 23 |
find . -name "*.h" -exec cp --parents '{}' $($(package)_staging_prefix_dir)/include/squashfuse \; |
| 24 |
endef |