2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="xz"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="5.4.4"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPL"
|
2024-04-06 14:14:32 +00:00
|
|
|
PKG_SHA512="2b233a924b82190ff15e970c5a4a59f1c53a0b39a96bde228c9dfc9b103b4a3e5888f5024da4834e180f6010620ff23caf9f7135a38724eb2c8d01bff7a9a9e1"
|
|
|
|
PKG_SITE="https://src.fedoraproject.org/repo/pkgs/xz/"
|
|
|
|
PKG_URL="https://src.fedoraproject.org/repo/pkgs/xz/${PKG_NAME}-${PKG_VERSION}.tar.xz/sha512/${PKG_SHA512}/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_HOST="ccache:host"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain"
|
|
|
|
PKG_LONGDESC="A free general-purpose data compression software with high compression ratio."
|
|
|
|
PKG_BUILD_FLAGS="+pic +pic:host"
|
2023-02-25 00:39:48 +00:00
|
|
|
PKG_TOOLCHAIN="configure"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
# never build shared or k0p happens when building
|
|
|
|
# on fedora due to host selinux/liblzma
|
|
|
|
PKG_CONFIGURE_OPTS_HOST="--disable-shared --enable-static \
|
|
|
|
--disable-lzmadec \
|
|
|
|
--disable-lzmainfo \
|
|
|
|
--enable-lzma-links \
|
2023-02-25 00:39:48 +00:00
|
|
|
--disable-nls \
|
2022-02-05 14:23:32 +00:00
|
|
|
--disable-scripts \
|
2023-02-25 00:39:48 +00:00
|
|
|
--enable-symbol-versions=no"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-02-25 00:39:48 +00:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--disable-shared --enable-static \
|
|
|
|
--enable-symbol-versions=no"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
post_makeinstall_target() {
|
|
|
|
rm -rf ${INSTALL}
|
|
|
|
}
|