--- /dev/null
+###############################################################################
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team <info@ipfire.org> #
+###############################################################################
+
+name = squashfs-tools
+version = 4.5.1
+release = 1
+
+groups = System/Filesystems
+url = https://github.com/plougher/squashfs-tools
+license = GPLv2
+summary = Tools to create and extract Squashfs filesystems
+
+description
+ Squashfs is a highly compressed read-only filesystem for Linux.
+
+ This package contains the utilities for manipulating squashfs filesystems.
+end
+
+source_dl = https://github.com/plougher/squashfs-tools/archive/refs/tags/%{version}.tar.gz#/
+
+build
+ requires
+ attr-devel
+ help2man
+ lz4-devel
+ lzo-devel
+ xz-devel
+ zlib-devel
+ zstd-devel
+ end
+
+ DIR_APP = %{DIR_SRC}/%{thisapp}/squashfs-tools
+
+ build
+ CFLAGS="%{CFLAGS}" \
+ LZ4_SUPPORT=1 \
+ LZMA_XZ_SUPPORT=1 \
+ LZO_SUPPORT=1 \
+ XZ_SUPPORT=1 \
+ ZSTD_SUPPORT=1 \
+ make %{PARALLELISMFLAGS}
+ end
+
+ install
+ make install \
+ INSTALL_PREFIX=%{BUILDROOT}%{prefix} \
+ INSTALL_DIR=%{BUILDROOT}%{bindir} \
+ INSTALL_MANPAGES_DIR=%{BUILDROOT}%{mandir}/man1
+ end
+end
+
+packages
+ package %{name}
+
+ package %{name}-debuginfo
+ template DEBUGINFO
+ end
+end