mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #3611 from MilhouseVH/le92_pigz
buildsystem: use pigz when compressing images [backport]
This commit is contained in:
commit
60e06a17a3
25
packages/compress/pigz/package.mk
Normal file
25
packages/compress/pigz/package.mk
Normal file
@ -0,0 +1,25 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="pigz"
|
||||
PKG_VERSION="2.4"
|
||||
PKG_SHA256="e228e7d18b34c4ece8d596eb6eee97bde533c6beedbb728d07d3abe90b4b1b52"
|
||||
PKG_LICENSE="Other"
|
||||
PKG_SITE="https://zlib.net/pigz/"
|
||||
PKG_URL="https://github.com/madler/pigz/archive/v${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_HOST="make:host zlib:host"
|
||||
PKG_LONGDESC="a parallel implementation of the gzip file compressor"
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
make_host() {
|
||||
make CPPFLAGS="${CPPFLAGS} -I${TOOLCHAIN}/include" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
CXX="${CXX}" \
|
||||
CC="${CC}" \
|
||||
pigz
|
||||
}
|
||||
|
||||
makeinstall_host() {
|
||||
mkdir -p $TOOLCHAIN/bin
|
||||
cp pigz ${TOOLCHAIN}/bin
|
||||
}
|
@ -8,7 +8,7 @@ PKG_SHA256="f3eeb8d57e25ca9fc13c2af3dae97754f9f643bc69229546828e3a240e2af04b"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.gnu.org/software/libc/"
|
||||
PKG_URL="http://ftp.gnu.org/pub/gnu/glibc/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS_TARGET="ccache:host autotools:host linux:host gcc:bootstrap"
|
||||
PKG_DEPENDS_TARGET="ccache:host autotools:host linux:host gcc:bootstrap pigz:host"
|
||||
PKG_DEPENDS_INIT="glibc"
|
||||
PKG_LONGDESC="The Glibc package contains the main C library."
|
||||
PKG_BUILD_FLAGS="-gold"
|
||||
@ -125,7 +125,7 @@ post_makeinstall_target() {
|
||||
if [ "$PROJECT" = "Generic" ]; then
|
||||
mkdir -p $INSTALL/usr/share/i18n/charmaps
|
||||
cp -PR $PKG_BUILD/localedata/charmaps/UTF-8 $INSTALL/usr/share/i18n/charmaps
|
||||
gzip $INSTALL/usr/share/i18n/charmaps/UTF-8
|
||||
pigz --best --force $INSTALL/usr/share/i18n/charmaps/UTF-8
|
||||
fi
|
||||
|
||||
if [ ! "$GLIBC_LOCALES" = yes ]; then
|
||||
|
@ -1,11 +1,12 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
||||
|
||||
PKG_NAME="toolchain"
|
||||
PKG_VERSION=""
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://libreelec.tv"
|
||||
PKG_URL=""
|
||||
PKG_DEPENDS_TARGET="configtools:host make:host xz:host sed:host pkg-config:host autoconf:host automake:host intltool:host libtool:host autoconf-archive:host gcc:host bison:host flex:host cmake:host xmlstarlet:host p7zip:host ninja:host meson:host"
|
||||
PKG_DEPENDS_TARGET="configtools:host make:host xz:host sed:host pkg-config:host autoconf:host automake:host intltool:host libtool:host autoconf-archive:host gcc:host bison:host flex:host cmake:host xmlstarlet:host p7zip:host pigz:host ninja:host meson:host"
|
||||
PKG_SECTION="virtual"
|
||||
PKG_LONGDESC="LibreELEC.tv' toolchain to compile all packages"
|
||||
|
@ -318,7 +318,7 @@ fi
|
||||
|
||||
# gzip
|
||||
echo "image: compressing..."
|
||||
gzip -f "${DISK}"
|
||||
pigz --best --force "${DISK}"
|
||||
|
||||
# set owner
|
||||
if [ -n "${SUDO_USER}" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user