2017-03-01 22:11:53 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/termux/play-audio
|
2015-07-28 02:17:05 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Simple commandline audio player for Android"
|
2015-12-23 07:01:08 +01:00
|
|
|
TERMUX_PKG_VERSION=0.4
|
2017-07-14 00:23:37 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2017-03-01 22:11:53 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/termux/play-audio/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
|
|
TERMUX_PKG_SHA256=95d495d2692b4ac13b5d0c9f680410f0c08e563ea67ae8de0089c7d9366fa223
|
|
|
|
TERMUX_PKG_FOLDERNAME=play-audio-$TERMUX_PKG_VERSION
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
2015-07-28 02:17:05 +02:00
|
|
|
|
2017-03-01 22:11:53 +01:00
|
|
|
termux_step_post_make_install () {
|
2015-12-22 23:34:50 +01:00
|
|
|
local LIBEXEC_BINARY=$TERMUX_PREFIX/libexec/play-audio
|
2017-03-01 22:11:53 +01:00
|
|
|
local BIN_BINARY=$TERMUX_PREFIX/bin/play-audio
|
|
|
|
mv $BIN_BINARY $LIBEXEC_BINARY
|
2015-12-22 23:34:50 +01:00
|
|
|
|
2017-03-01 22:11:53 +01:00
|
|
|
cat << EOF > $BIN_BINARY
|
2015-12-23 06:59:53 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Avoid linker errors due to libOpenSLES.so:
|
|
|
|
LD_LIBRARY_PATH= exec $LIBEXEC_BINARY "\$@"
|
|
|
|
EOF
|
|
|
|
|
2017-03-01 22:11:53 +01:00
|
|
|
chmod +x $BIN_BINARY
|
2015-07-28 02:17:05 +02:00
|
|
|
}
|