diff options
author | davidovski <david@davidovski.xyz> | 2022-08-10 09:16:34 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-08-10 09:16:34 +0100 |
commit | c1d3da9ca87c414100b1cb969e36b8d7d05b9a74 (patch) | |
tree | 1cd983a42e1a221991d09783e08c6c162d4be5cf /repo/squashfs-tools | |
parent | 9a26d3fdc7fca2df6f824b56034ab9a823e898d8 (diff) |
added ovmf, lolcat, spice, and squashfstools
Diffstat (limited to 'repo/squashfs-tools')
-rw-r--r-- | repo/squashfs-tools/fix-compat.patch | 12 | ||||
-rw-r--r-- | repo/squashfs-tools/squashfs-tools.xibuild | 27 |
2 files changed, 39 insertions, 0 deletions
diff --git a/repo/squashfs-tools/fix-compat.patch b/repo/squashfs-tools/fix-compat.patch new file mode 100644 index 0000000..8a5ff06 --- /dev/null +++ b/repo/squashfs-tools/fix-compat.patch @@ -0,0 +1,12 @@ +--- a/squashfs-tools/action.c ++++ b/squashfs-tools/action.c +@@ -1905,6 +1905,9 @@ + return 1; + } + ++#ifndef FNM_EXTMATCH ++#define FNM_EXTMATCH 0 ++#endif + + TEST_FN(name, ACTION_ALL_LNK, \ + return fnmatch(atom->argv[0], action_data->name, diff --git a/repo/squashfs-tools/squashfs-tools.xibuild b/repo/squashfs-tools/squashfs-tools.xibuild new file mode 100644 index 0000000..13bfee4 --- /dev/null +++ b/repo/squashfs-tools/squashfs-tools.xibuild @@ -0,0 +1,27 @@ +#!/bin/sh + +NAME="squashfs-tools" +DESC="Tools for squashfs, a highly compressed read-only filesystem for Linux" + +MAKEDEPS="zlib xz lzo lz4 attr zstd" + +PKG_VER=4.5.1 +SOURCE="https://github.com/plougher/squashfs-tools/archive/$PKG_VER.tar.gz" + +ADDITIONAL=" +fix-compat.patch +" + +prepare () { + apply_patches +} + +build() { + make -C squashfs-tools XZ_SUPPORT=1 LZO_SUPPORT=1 LZ4_SUPPORT=1 ZSTD_SUPPORT=1 +} + +package() { + mkdir -p "$PKG_DEST"/sbin + cp -a squashfs-tools/*squashfs "$PKG_DEST"/sbin +} + |