2015-07-28 02:17:05 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://termux.com
|
|
|
|
TERMUX_PKG_DESCRIPTION="Simple commandline audio player for Android"
|
2015-12-23 07:01:08 +01:00
|
|
|
TERMUX_PKG_VERSION=0.4
|
2015-07-28 02:17:05 +02:00
|
|
|
|
|
|
|
termux_step_make_install () {
|
2015-12-22 23:34:50 +01:00
|
|
|
local LIBEXEC_BINARY=$TERMUX_PREFIX/libexec/play-audio
|
2015-07-28 02:17:05 +02:00
|
|
|
$CXX $CFLAGS $LDFLAGS \
|
|
|
|
-std=c++14 -Wall -Wextra -pedantic -Werror \
|
|
|
|
-lOpenSLES \
|
2015-12-22 23:34:50 +01:00
|
|
|
$TERMUX_PKG_BUILDER_DIR/play-audio.cpp -o $LIBEXEC_BINARY
|
|
|
|
|
2015-12-23 06:59:53 +01:00
|
|
|
cat << EOF > $TERMUX_PREFIX/bin/play-audio
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Avoid linker errors due to libOpenSLES.so:
|
|
|
|
LD_LIBRARY_PATH= exec $LIBEXEC_BINARY "\$@"
|
|
|
|
EOF
|
|
|
|
|
2015-12-22 23:34:50 +01:00
|
|
|
chmod +x $TERMUX_PREFIX/bin/play-audio
|
2015-07-28 02:18:01 +02:00
|
|
|
|
|
|
|
mkdir -p $TERMUX_PREFIX/share/man/man1/
|
2015-07-28 02:17:05 +02:00
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/play-audio.1 $TERMUX_PREFIX/share/man/man1/
|
|
|
|
}
|