46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/mikebrady/shairport-sync
|
|
TERMUX_PKG_DESCRIPTION="An AirPlay audio player"
|
|
TERMUX_PKG_LICENSE="custom"
|
|
TERMUX_PKG_LICENSE_FILE="LICENSES"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
# Cannot simply be updated to a newer version due to `pthread_cancel` being used
|
|
TERMUX_PKG_VERSION=3.1.2
|
|
TERMUX_PKG_REVISION=3
|
|
TERMUX_PKG_SRCURL=https://github.com/mikebrady/shairport-sync/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=8c13f7ebbd417e8cab07ea9f74392ced0f54315d8697d4513580f472859a9c65
|
|
TERMUX_PKG_DEPENDS="libconfig, libdaemon, libpopt, libsoxr, openssl, pulseaudio"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
--with-pa
|
|
--with-soxr
|
|
--with-ssl=openssl
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
autoreconf -fi
|
|
|
|
CFLAGS+=" -fcommon"
|
|
|
|
_NEED_DUMMY_LIBPTHREAD_A=
|
|
_LIBPTHREAD_A=$TERMUX_PREFIX/lib/libpthread.a
|
|
if [ ! -e $_LIBPTHREAD_A ]; then
|
|
_NEED_DUMMY_LIBPTHREAD_A=true
|
|
echo '!<arch>' > $_LIBPTHREAD_A
|
|
fi
|
|
_NEED_DUMMY_LIBRT_A=
|
|
_LIBRT_A=$TERMUX_PREFIX/lib/librt.a
|
|
if [ ! -e $_LIBRT_A ]; then
|
|
_NEED_DUMMY_LIBRT_A=true
|
|
echo '!<arch>' > $_LIBRT_A
|
|
fi
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
if [ $_NEED_DUMMY_LIBPTHREAD_A ]; then
|
|
rm -f $_LIBPTHREAD_A
|
|
fi
|
|
if [ $_NEED_DUMMY_LIBRT_A ]; then
|
|
rm -f $_LIBRT_A
|
|
fi
|
|
}
|