98-sratom.sh 637 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/lv2/sratom.git"
  3. SCRIPT_COMMIT="ce5688253e1ef06cd9551f563f70aab2cd487197"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerbuild() {
  8. mkdir build && cd build
  9. local myconf=(
  10. --prefix="$FFBUILD_PREFIX"
  11. --buildtype=release
  12. --default-library=static
  13. -Ddocs=disabled
  14. -Dtests=disabled
  15. )
  16. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  17. myconf+=(
  18. --cross-file=/cross.meson
  19. )
  20. else
  21. echo "Unknown target"
  22. return -1
  23. fi
  24. meson "${myconf[@]}" ..
  25. ninja -j"$(nproc)"
  26. ninja install
  27. }