Files
Arch-R/packages/sysutils/squashfs/package.mk

30 lines
1.4 KiB
Makefile
Raw Normal View History

2018-07-16 20:45:36 +02:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="squashfs"
2018-02-06 07:19:31 +00:00
PKG_VERSION="e38956b"
PKG_SHA256="d49241e238076ee56920c6aec31f0de7b41fe770d1b2c03d1714bbffb833a98f"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="https://git.kernel.org/pub/scm/fs/squashfs/squashfs-tools.git"
PKG_URL="https://git.kernel.org/pub/scm/fs/squashfs/squashfs-tools.git/snapshot/$PKG_VERSION.tar.gz"
PKG_SOURCE_DIR="$PKG_VERSION"
2017-09-22 13:58:12 +01:00
PKG_DEPENDS_HOST="ccache:host zlib:host lzo:host xz:host zstd:host"
PKG_NEED_UNPACK="$(get_pkg_directory zlib) $(get_pkg_directory lzo) $(get_pkg_directory xz) $(get_pkg_directory zstd)"
PKG_SECTION="sysutils"
PKG_SHORTDESC="squashfs-tools: A compressed read-only filesystem for Linux"
PKG_LONGDESC="Squashfs is intended to be a general read-only filesystem, for archival use (i.e. in cases where a .tar.gz file may be used), and in constrained block device/memory systems (e.g. embedded systems) where low overhead is needed. The filesystem is currently stable and has been tested on PowerPC, i386, SPARC and ARM architectures."
PKG_TOOLCHAIN="manual"
make_host() {
make -C squashfs-tools mksquashfs \
2017-09-22 13:58:12 +01:00
XZ_SUPPORT=1 LZO_SUPPORT=1 ZSTD_SUPPORT=1 \
2017-08-19 15:48:15 +02:00
XATTR_SUPPORT=0 XATTR_DEFAULT=0 \
INCLUDEDIR="-I. -I$TOOLCHAIN/include"
}
makeinstall_host() {
mkdir -p $TOOLCHAIN/bin
cp squashfs-tools/mksquashfs $TOOLCHAIN/bin
}