xbps-src: Migrate from build_style for 32bit pkgs

This allows dxpb to have a simpler test for whether or not a 32bit
package will be built.
This commit is contained in:
Toyam Cox 2018-10-03 04:16:47 -04:00 committed by Enno Boland
parent 1ec953f637
commit 1edc8846ca
3 changed files with 2 additions and 8 deletions

View file

@ -0,0 +1 @@
lib32disabled=yes

View file

@ -0,0 +1 @@
lib32disabled=yes

View file

@ -12,14 +12,6 @@
hook() {
local destdir32=${XBPS_DESTDIR}/${pkgname}-32bit-${version}
# Do not build 32bit pkgs for:
# - perl modules
# - python modules
# - ruby modules
if [[ $build_style =~ (perl|python|ruby) ]]; then
return
fi
# By default always enabled unless "lib32disabled" is set.
if [ -n "$lib32disabled" ]; then
return