diff --git a/packages/play-audio/build.sh b/packages/play-audio/build.sh index d8e6ba09c..f4dc4f9d1 100644 --- a/packages/play-audio/build.sh +++ b/packages/play-audio/build.sh @@ -9,7 +9,13 @@ termux_step_make_install () { -lOpenSLES \ $TERMUX_PKG_BUILDER_DIR/play-audio.cpp -o $LIBEXEC_BINARY - printf "#!/bin/sh\n\n# Avoid linker errors due to libOpenSLES.so:\nLD_LIBRARY_PATH= exec $LIBEXEC_BINARY \"\$@\"\n" > $TERMUX_PREFIX/bin/play-audio + cat << EOF > $TERMUX_PREFIX/bin/play-audio +#!/bin/sh + +# Avoid linker errors due to libOpenSLES.so: +LD_LIBRARY_PATH= exec $LIBEXEC_BINARY "\$@" +EOF + chmod +x $TERMUX_PREFIX/bin/play-audio mkdir -p $TERMUX_PREFIX/share/man/man1/