hooks/prepare-32bit: added lib32files var to add additional files to 32bit pkgs.
This commit is contained in:
parent
be3a002238
commit
320167e7e1
|
@ -3,13 +3,10 @@
|
||||||
# Variables that can be used in templates:
|
# Variables that can be used in templates:
|
||||||
# - lib32depends: if set, 32bit pkg will use this rather than "depends".
|
# - lib32depends: if set, 32bit pkg will use this rather than "depends".
|
||||||
# - lib32disabled: if set, no 32bit pkg will be created.
|
# - lib32disabled: if set, no 32bit pkg will be created.
|
||||||
|
# - lib32files: additional files to add to the 32bit pkg (abs paths, separated by blanks).
|
||||||
# - lib32mode:
|
# - lib32mode:
|
||||||
# * if unset only files for libraries will be copied.
|
# * if unset only files for libraries will be copied.
|
||||||
# * if set to "full" all files will be copied.
|
# * if set to "full" all files will be copied.
|
||||||
#
|
|
||||||
# XXX remaining issues:
|
|
||||||
# - wrong dependencies in some cases.
|
|
||||||
# - no way to specify additional files.
|
|
||||||
|
|
||||||
hook() {
|
hook() {
|
||||||
local destdir32=${XBPS_DESTDIR}/${pkgname}-32bit-${version}
|
local destdir32=${XBPS_DESTDIR}/${pkgname}-32bit-${version}
|
||||||
|
@ -104,11 +101,18 @@ hook() {
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Also install additional files set via "lib32files".
|
||||||
|
for f in ${lib32files}; do
|
||||||
|
echo "$pkgver: installing additional files: $f ..."
|
||||||
|
_targetdir=${destdir32}/$(dirname ${f})
|
||||||
|
mkdir -p ${_targetdir}
|
||||||
|
cp -a ${PKGDESTDIR}/${f} ${_targetdir}
|
||||||
|
done
|
||||||
# If it's a development pkg add a dependency to the 64bit pkg.
|
# If it's a development pkg add a dependency to the 64bit pkg.
|
||||||
if [[ $pkgname =~ '-devel' ]]; then
|
if [[ $pkgname =~ '-devel' ]]; then
|
||||||
printf "${pkgver} " >> ${destdir32}/rdeps
|
printf "${pkgver} " >> ${destdir32}/rdeps
|
||||||
fi
|
fi
|
||||||
printf "\n" >> ${destdir32}/rdeps
|
printf "\n" >> ${destdir32}/rdeps
|
||||||
|
|
||||||
unset lib32depends lib32disabled lib32mode
|
unset lib32depends lib32disabled lib32files lib32mode
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue