distribution/packages/compress/xz/package.mk

34 lines
1.4 KiB
Makefile
Raw Normal View History

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)
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
2022-02-05 14:23:32 +00:00
PKG_NAME="xz"
PKG_VERSION="5.4.4"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="GPL"
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"
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 \
--disable-nls \
2022-02-05 14:23:32 +00:00
--disable-scripts \
--enable-symbol-versions=no"
2022-02-05 14:23:32 +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}
}