# Template file for 'squashfs-tools'
pkgname=squashfs-tools
version=4.7.5
revision=1
build_wrksrc="squashfs-tools"
build_style=gnu-makefile
make_use_env=yes
make_build_args="XZ_SUPPORT=1 LZO_SUPPORT=1 LZMA_XZ_SUPPORT=1 LZ4_SUPPORT=1 ZSTD_SUPPORT=1"
make_install_args="INSTALL_PREFIX=\${DESTDIR}/usr INSTALL_MANPAGES_DIR=\${DESTDIR}/usr/share/man/man1"
hostmakedepends="which"
makedepends="zlib-devel lzo-devel liblzma-devel liblz4-devel libzstd-devel"
short_desc="Tool to create and append to squashfs filesystems"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/plougher/squashfs-tools"
changelog="https://github.com/plougher/squashfs-tools/raw/master/CHANGES"
distfiles="https://github.com/plougher/squashfs-tools/archive/refs/tags/${version}.tar.gz"
checksum=547b7b7f4d2e44bf91b6fc554664850c69563701deab9fd9cd7e21f694c88ea6

case "${XBPS_TARGET_MACHINE}" in
armv[67]l-musl) broken="need to backport SEEK_DATA musl patch https://github.com/bminor/musl/commit/cbacd638e32a02edbe66c48ae3d1361bc06a492a.patch" ;;
esac
