blob: 167db8f77558b13c6c72b29c0ed87fb7bb41940b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 2009-2017 Wulf C. Krueger <philantrop@exherbo.org>
# Distributed under the terms of the GNU General Public License v2
SCM_REPOSITORY="https://git.kernel.org/pub/scm/fs/squashfs/squashfs-tools.git"
require scm-git
SUMMARY="The Squashfs tools for creating compressed filesystems"
DESCRIPTION="
Squashfs is a highly compressed read-only filesystem for Linux. It uses zlib to
compress files, inodes, and directories. All blocks are packed to minimize the
data overhead, and block sizes of between 4K and 1M are supported. It is intended
to be used for archival use, for live CDs, and for embedded systems where low
overhead is needed. This package allows you to create such filesystems.
"
REMOTE_IDS+="freecode:squashfs"
LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS="
xz [[ description = [ Support xz compressed images ] ]]
lzma [[ description = [ Support lzma compressed images ] ]]
lz4 [[ description = [ Support lz4 compressed images ] ]]
lzo [[ description = [ Support lzo compressed images ] ]]
zstd [[ description = [ Support zstd compressed images ] ]]
xattr
"
DEPENDENCIES="
build+run:
xz? ( app-arch/xz )
lzma? ( app-arch/xz )
lz4? ( app-arch/lz4 )
lzo? ( app-arch/lzo:2 )
zstd? ( app-arch/zstd )
xattr? ( sys-apps/attr )
run:
sys-libs/zlib
"
WORK=${WORK}/squashfs-tools
DEFAULT_SRC_COMPILE_PARAMS=( CC="${CC}" LDFLAGS="${LDFLAGS}" )
DEFAULT_SRC_INSTALL_PARAMS=( INSTALL_DIR="${IMAGE}"/usr/$(exhost --target)/bin )
DEFAULT_SRC_INSTALL_EXTRA_PREFIXES=( ../ )
DEFAULT_SRC_INSTALL_EXTRA_DOCS=( ACKNOWLEDGEMENTS PERFORMANCE.README )
src_prepare() {
default
option xz && edo sed -i -e 's/#XZ_SUPPORT = 1/XZ_SUPPORT = 1/' Makefile
option lzma && edo sed -i -e 's/#LZMA_SUPPORT = 1/LZMA_SUPPORT = 1/' Makefile
option lz4 && edo sed -i -e 's/#LZ4_SUPPORT = 1/LZ4_SUPPORT = 1/' Makefile
option lzo && edo sed -i -e 's/#LZO_SUPPORT = 1/LZO_SUPPORT = 1/' Makefile
option zstd && edo sed -i -e 's/#ZSTD_SUPPORT = 1/ZSTD_SUPPORT = 1/' Makefile
option xattr && edo sed -i -e 's/#XATTR_SUPPORT = 1/XATTR_SUPPORT = 1/' Makefile
}
|