hooks: only generate/register 32bit pkgs on x86.
This commit is contained in:
parent
1aa6450b36
commit
3016320cb0
|
@ -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)"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue