2022-02-03 10:26:27 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://mega.io/
|
2021-12-12 12:21:02 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Provides non UI access to MEGA services"
|
|
|
|
TERMUX_PKG_LICENSE="BSD 2-Clause"
|
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
|
|
TERMUX_PKG_VERSION=1.4.1
|
2022-03-23 00:35:58 +01:00
|
|
|
TERMUX_PKG_REVISION=8
|
2021-12-12 12:21:02 +01:00
|
|
|
_COMMIT=fd50adec27d1c2fdea8f7264cb30b8d8117d0699
|
|
|
|
TERMUX_PKG_SRCURL=https://github.com/meganz/MEGAcmd.git
|
|
|
|
TERMUX_PKG_GIT_BRANCH=master
|
|
|
|
_SDK_COMMIT=0e79b2739f695d08efed5a61bbf44362e127c30b
|
|
|
|
TERMUX_PKG_DEPENDS="c-ares, cryptopp, ffmpeg, freeimage, libc++, libcurl, libsodium, libsqlite, libuv, libzen, mediainfo, openssl, pcre, readline, zlib"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--disable-static
|
|
|
|
--with-pcre=$TERMUX_PREFIX
|
|
|
|
ac_cv_lib_pthread_pthread_create=yes
|
|
|
|
"
|
|
|
|
|
|
|
|
termux_step_post_get_source() {
|
|
|
|
git fetch --unshallow
|
|
|
|
git checkout $_COMMIT
|
|
|
|
( cd sdk && git checkout $_SDK_COMMIT )
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
|
|
|
|
export OBJCXX="$CXX"
|
|
|
|
CPPFLAGS+=" -DENABLE_SYNC"
|
|
|
|
|
2022-03-23 00:35:58 +01:00
|
|
|
LDFLAGS+=" $($CC -print-libgcc-file-name)"
|
|
|
|
|
2021-12-13 10:47:19 +01:00
|
|
|
_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
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
if [ $_NEED_DUMMY_LIBPTHREAD_A ]; then
|
|
|
|
rm -f $_LIBPTHREAD_A
|
|
|
|
fi
|
2021-12-12 12:21:02 +01:00
|
|
|
}
|