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"
|
2017-07-28 14:49:03 +02:00
|
|
|
TERMUX_PKG_VERSION=0.5
|
|
|
|
TERMUX_PKG_SHA256=e114123c4b337cddb1d4aa6c3287574d8c81b2dc4b3abc07ce21616fa14f9e82
|
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_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:
|
2017-07-28 14:49:03 +02:00
|
|
|
LD_PRELOAD=$TERMUX_PREFIX/lib/libc++_shared.so LD_LIBRARY_PATH= exec $LIBEXEC_BINARY "\$@"
|
2015-12-23 06:59:53 +01:00
|
|
|
EOF
|
|
|
|
|
2017-03-01 22:11:53 +01:00
|
|
|
chmod +x $BIN_BINARY
|
2015-07-28 02:17:05 +02:00
|
|
|
}
|