common/hooks: new hook to generate 32bit pkgs for x86_64 (WIP).
This commit is contained in:
parent
dd86f41ce0
commit
908af511f9
3 changed files with 97 additions and 1 deletions
|
@ -143,4 +143,12 @@ hook() {
|
|||
PKGDESTDIR="${XBPS_DESTDIR}/${XBPS_CROSS_TRIPLET}/${pkgname}-dbg-${version}"
|
||||
genpkg ${repo} ${arch} "${_desc}" ${_pkgver} ${binpkg}
|
||||
fi
|
||||
# Generate 32bit pkg.
|
||||
if [ -d "${XBPS_DESTDIR}/${pkgname}32-${version}" ]; then
|
||||
_pkgver=${pkgname}32-${version}_${revision}
|
||||
_desc="${short_desc} (32bit)"
|
||||
binpkg=${_pkgver}.x86_64.xbps
|
||||
PKGDESTDIR="${XBPS_DESTDIR}/${pkgname}32-${version}"
|
||||
genpkg ${repo} x86_64 "${_desc}" ${_pkgver} ${binpkg}
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue