]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
squashfs-tools: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2022 17:12:25 +0000 (17:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Dec 2022 17:12:25 +0000 (17:12 +0000)
Required by bricklayer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
squashfs-tools/squashfs-tools.nm [new file with mode: 0644]

diff --git a/squashfs-tools/squashfs-tools.nm b/squashfs-tools/squashfs-tools.nm
new file mode 100644 (file)
index 0000000..dc35b09
--- /dev/null
@@ -0,0 +1,60 @@
+###############################################################################
+# 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