2023-10-24 02:12:52 +02:00

36 lines
668 B
Bash
Executable File

#!/bin/bash
SCRIPT_REPO="https://github.com/lv2/sratom.git"
SCRIPT_COMMIT="19a670806390d1980f3471710ba3a5af3d0bd64b"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build
local myconf=(
--prefix="$FFBUILD_PREFIX"
--buildtype=release
--default-library=static
-Ddocs=disabled
-Dtests=disabled
)
if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--cross-file=/cross.meson
)
else
echo "Unknown target"
return -1
fi
meson "${myconf[@]}" ..
ninja -j"$(nproc)"
ninja install
}