actiona: fix build with 32bit toolchain by reducing debug symbols
This commit is contained in:
@@ -3,7 +3,7 @@ pkgname=actiona
|
||||
version=3.11.1
|
||||
revision=1
|
||||
build_style=cmake
|
||||
configure_args="-DACT_UPDATER=OFF -DNinja_EXECUTABLE=$XBPS_WRAPPERDIR/ninja"
|
||||
configure_args="-DACT_UPDATER=OFF"
|
||||
hostmakedepends="pkg-config qt6-base qt6-tools"
|
||||
makedepends="boost-headers libnotify-devel libopencv-devel pulseaudio-devel
|
||||
libbluetooth-devel
|
||||
@@ -19,24 +19,16 @@ distfiles="https://github.com/Jmgr/actiona/archive/v${version}.tar.gz"
|
||||
distfiles="https://github.com/Jmgr/actiona/releases/download/v${version}/actiona-${version}-source-linux.tar.gz"
|
||||
checksum=a643ccae90f353b6558e9f61c00a8aedb5ca73c52f08bb0ccca69fc5e2a8444d
|
||||
|
||||
# Provide a wrapper to run ./xbps-src -j 1 build later
|
||||
_wrap_ninja() {
|
||||
cat <<-'_EOF' >"$XBPS_WRAPPERDIR"/ninja
|
||||
#!/bin/sh
|
||||
|
||||
exec /usr/bin/ninja $NINJAFLAGS "$@"
|
||||
_EOF
|
||||
chmod +x "$XBPS_WRAPPERDIR"/ninja
|
||||
}
|
||||
|
||||
pre_configure() {
|
||||
_wrap_ninja
|
||||
if [ "$XBPS_WORDSIZE" = 32 ]; then
|
||||
export CFLAGS=${CFLAGS/ -g/-g1}
|
||||
export CXXFLAGS=${CXXFLAGS/ -g/-g1}
|
||||
fi
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
if [ "$XBPS_WORDSIZE" = 32 ]; then
|
||||
export NINJAFLAGS=-j2
|
||||
else
|
||||
export NINJAFLAGS="$makejobs"
|
||||
export CFLAGS=${CFLAGS/ -g/-g1}
|
||||
export CXXFLAGS=${CXXFLAGS/ -g/-g1}
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user