Merge pull request #110 from franciscod/playaudio-script-spaces
play-audio: Quote arguments on wrapper script
This commit is contained in:
commit
dbfc21aec8
@ -1,6 +1,6 @@
|
|||||||
TERMUX_PKG_HOMEPAGE=http://termux.com
|
TERMUX_PKG_HOMEPAGE=http://termux.com
|
||||||
TERMUX_PKG_DESCRIPTION="Simple commandline audio player for Android"
|
TERMUX_PKG_DESCRIPTION="Simple commandline audio player for Android"
|
||||||
TERMUX_PKG_VERSION=0.3
|
TERMUX_PKG_VERSION=0.4
|
||||||
|
|
||||||
termux_step_make_install () {
|
termux_step_make_install () {
|
||||||
local LIBEXEC_BINARY=$TERMUX_PREFIX/libexec/play-audio
|
local LIBEXEC_BINARY=$TERMUX_PREFIX/libexec/play-audio
|
||||||
@ -9,7 +9,13 @@ termux_step_make_install () {
|
|||||||
-lOpenSLES \
|
-lOpenSLES \
|
||||||
$TERMUX_PKG_BUILDER_DIR/play-audio.cpp -o $LIBEXEC_BINARY
|
$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
|
chmod +x $TERMUX_PREFIX/bin/play-audio
|
||||||
|
|
||||||
mkdir -p $TERMUX_PREFIX/share/man/man1/
|
mkdir -p $TERMUX_PREFIX/share/man/man1/
|
||||||
|
Loading…
Reference in New Issue
Block a user