From bff21e9e775804b9732533d39c9039fa4cffb671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D9=87=D8=AF=D9=8A=20=D8=B4=D9=8A=D9=86=D9=88=D9=86?= =?UTF-8?q?=20=28Mehdi=20Chinoune=29?= Date: Thu, 28 Nov 2024 17:03:25 +0100 Subject: [PATCH] xz: don't build docs on i686 --- mingw-w64-xz/PKGBUILD | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/mingw-w64-xz/PKGBUILD b/mingw-w64-xz/PKGBUILD index ce0f8d3fcc58a..64979ce9f2305 100644 --- a/mingw-w64-xz/PKGBUILD +++ b/mingw-w64-xz/PKGBUILD @@ -5,7 +5,7 @@ _realname=xz pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" pkgver=5.6.3 -pkgrel=2 +pkgrel=3 pkgdesc="Library and command line tools for XZ and LZMA compressed files (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') @@ -22,7 +22,7 @@ depends=("${MINGW_PACKAGE_PREFIX}-gettext-runtime") makedepends=("${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-autotools" "${MINGW_PACKAGE_PREFIX}-gettext-tools" - "${MINGW_PACKAGE_PREFIX}-doxygen" + $([[ ${CARCH} == i686 ]] || echo "${MINGW_PACKAGE_PREFIX}-doxygen") "po4a") source=("https://github.com/tukaani-project/xz/releases/download/v${pkgver}/xz-${pkgver}.tar.xz"{,.sig}) sha256sums=('db0590629b6f0fa36e74aea5f9731dc6f8df068ce7b7bafa45301832a5eebc3a' @@ -39,11 +39,18 @@ prepare() { build() { mkdir -p "${srcdir}/build-${MSYSTEM}" && cd "${srcdir}/build-${MSYSTEM}" + declare -a _extra_config + if [[ ${CARCH} == i686 ]]; then + _extra_config+=("--disable-doxygen") + else + _extra_config+=("--enable-doxygen") + fi + ../${_realname}-${pkgver}/configure \ --prefix=${MINGW_PREFIX} \ --disable-rpath \ --disable-lzma-links \ - --enable-doxygen + "${_extra_config}" make } @@ -52,5 +59,6 @@ package() { cd "${srcdir}/build-${MSYSTEM}" make DESTDIR="${pkgdir}" install - install -Dm644 ${srcdir}/${_realname}-${pkgver}/COPYING* -t ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname} + install -Dm644 ${srcdir}/${_realname}-${pkgver}/COPYING* \ + -t ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname} }