1 # Build recipe for squashfs-tools.
3 # Copyright (c) 2021, 2023 Matias Fonzo, <selk@dragora.org>.
4 # Copyright (c) 2022 DustDFG, <dfgdust@gmail.com>.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # Exit immediately on any error
21 program=squashfs-tools
22 version=20230406_cbaa34a
25 # Define a category for the output of the package name
28 tarname=${program}-${version}.tar.lz
31 #fetch=https://downloads.sourceforge.net/project/squashfs/squashfs/squashfs${version}/$tarname
33 https://dragora.mirror.garr.it/current/sources/$tarname
34 rsync://rsync.dragora.org/current/sources/$tarname
38 Tools to create and extract Squashfs filesystems.
40 This is a squashed read-only filesystem for GNU/Linux.
43 homepage=https://github.com/plougher/squashfs-tools/
46 # Source documentation
48 ACKNOWLEDGEMENTS ACTIONS-README CHANGES COPYING README* USAGE
49 RELEASE-READMEs/DONATIONS
51 docsdir="${docdir}/${program}-${version}"
55 unpack "${tardir}/$tarname"
59 # Apply a patch to include LZIP support
60 patch -p1 < "${worktree}/patches/squashfs-tools/squashfs-tools-20221209_c901403_lzip-0.diff"
62 # Set sane permissions
63 chmod -R u+w,go-w,a+rX-s .
67 make -j${jobs} CC=cc EXTRA_CFLAGS="$QICFLAGS -O3" LDFLAGS="$QILDFLAGS" \
76 install INSTALL_DIR="${destdir}/usr/bin"
81 mkdir -p "${destdir}/$docsdir"
82 cp -p $docs "${destdir}/$docsdir"