Skip to content

Commit

Permalink
xz: don't build docs on i686
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiChinoune committed Nov 28, 2024
1 parent df6625c commit bff21e9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions mingw-w64-xz/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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'
Expand All @@ -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
}
Expand All @@ -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}
}

0 comments on commit bff21e9

Please sign in to comment.