From 8a1912b9e5852b247d943c4e16829b1c9bdb690e Mon Sep 17 00:00:00 2001 From: Francisco Demartino Date: Wed, 23 Dec 2015 02:59:11 -0300 Subject: [PATCH 1/3] play-audio: use 'quoted dollar at' ("$@") for args --- packages/play-audio/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/play-audio/build.sh b/packages/play-audio/build.sh index 206ee873a..d8e6ba09c 100644 --- a/packages/play-audio/build.sh +++ b/packages/play-audio/build.sh @@ -9,7 +9,7 @@ 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 + printf "#!/bin/sh\n\n# Avoid linker errors due to libOpenSLES.so:\nLD_LIBRARY_PATH= exec $LIBEXEC_BINARY \"\$@\"\n" > $TERMUX_PREFIX/bin/play-audio chmod +x $TERMUX_PREFIX/bin/play-audio mkdir -p $TERMUX_PREFIX/share/man/man1/ From eb8a3d4216995db06801198ce51795c8e877e162 Mon Sep 17 00:00:00 2001 From: Francisco Demartino Date: Wed, 23 Dec 2015 02:59:53 -0300 Subject: [PATCH 2/3] play-audio: use heredoc instead of printf --- packages/play-audio/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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/ From 413192e8f6fd44e5d114d260fcdd98031354533d Mon Sep 17 00:00:00 2001 From: Francisco Demartino Date: Wed, 23 Dec 2015 03:01:08 -0300 Subject: [PATCH 3/3] play-audio: bump to 0.4 --- packages/play-audio/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/play-audio/build.sh b/packages/play-audio/build.sh index f4dc4f9d1..ee5b0e5c9 100644 --- a/packages/play-audio/build.sh +++ b/packages/play-audio/build.sh @@ -1,6 +1,6 @@ TERMUX_PKG_HOMEPAGE=http://termux.com TERMUX_PKG_DESCRIPTION="Simple commandline audio player for Android" -TERMUX_PKG_VERSION=0.3 +TERMUX_PKG_VERSION=0.4 termux_step_make_install () { local LIBEXEC_BINARY=$TERMUX_PREFIX/libexec/play-audio