Minisatip: Fixed build on armhf/v7

This commit is contained in:
2026-02-28 01:10:06 +01:00
parent 8bc4a162b8
commit aa1cea2a72
2 changed files with 6 additions and 5 deletions

2
.vscode/tasks.json vendored
View File

@@ -16,7 +16,7 @@
{
"label": "Clean Package",
"type": "shell",
"command": " cd ${input:Package}; abuild clean; abuild cleancache",
"command": " cd ${input:Package}; abuild clean; abuild cleancache; abuild cleanpkg",
"problemMatcher": [],
"group": {
"kind": "build",

View File

@@ -18,10 +18,11 @@ _builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "${_builddir}"
#sed -i 's/bash/ash/' ./tools/determine_version.sh
#./configure --enable-static
cmake -B build
#if [ "$CARCH" = "armhf" ] || [ "$CARCH" = "armv7" ]; then sed -i 's/CXX23=.*/CXX23=0/' src/Makefile ;fi
if [ "$CARCH" = "armhf" ] || [ "$CARCH" = "armv7" ]; then
cmake -B build . -DCXX23=OFF -DSTATIC=ON
else
cmake -B build . -DSTATIC=ON
fi
cd build
sed -i "s/\~/${pkgver}-r${pkgrel}/" config.h
ninja