hooks: only generate/register 32bit pkgs on x86.

This commit is contained in:
Juan RP 2014-03-07 10:12:20 +01:00
parent 1aa6450b36
commit 3016320cb0
2 changed files with 6 additions and 0 deletions

View File

@ -144,6 +144,9 @@ hook() {
genpkg ${repo} ${arch} "${_desc}" ${_pkgver} ${binpkg}
fi
# Generate 32bit pkg.
if [ "$XBPS_TARGET_MACHINE" != "i686" ]; then
return
fi
if [ -d "${XBPS_DESTDIR}/${pkgname}-32bit-${version}" ]; then
_pkgver=${pkgname}-32bit-${version}_${revision}
_desc="${short_desc} (32bit)"

View File

@ -53,6 +53,9 @@ hook() {
fi
# Register 32bit binpkg if it exists.
if [ "$XBPS_TARGET_MACHINE" != "i686" ]; then
return
fi
if [ -f ${pkgdir}/${binpkg32} ]; then
registerpkg ${pkgdir} ${binpkg32} x86_64
fi