0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-20 18:09:35 +00:00
Files
termux-packages/packages/megacmd/build.sh
Yaksh Bariya e7f23e0cde rebuild(deps:main/libicu): rebuild against libicu 77.1
ABI has changed, so rebuild

The packages will be manually queued for building as their number is
huge

%ci:no-build
2025-03-18 21:15:09 +05:30

43 lines
1.3 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://mega.io/
TERMUX_PKG_DESCRIPTION="Provides non UI access to MEGA services"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.0.0"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=git+https://github.com/meganz/MEGAcmd
TERMUX_PKG_GIT_BRANCH=${TERMUX_PKG_VERSION}_Linux
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+\.\d+"
# dbus is required for $PREFIX/var/lib/dbus/machine-id
TERMUX_PKG_DEPENDS="c-ares, cryptopp, dbus, ffmpeg, freeimage, libandroid-glob, libc++, libcurl, libicu, libsodium, libsqlite, libuv, mediainfo, openssl, pcre, readline, zlib"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DUSE_FFMPEG=ON
-DUSE_PCRE=ON
-DUSE_LIBUV=ON
-DUSE_PDFIUM=OFF
-DFULL_REQS=OFF
-DVCPKG_ROOT=FALSE
-DENABLE_MEGACMD_TESTS=OFF
"
termux_step_post_get_source() {
# We use `config.h` generated by configure script instead of this one.
local f="sdk/include/mega/config-android.h"
if [ -f "${f}" ]; then
rm -f "${f}"
echo '#error DO NOT INCLUDE ME!' > "${f}"
else
termux_error_exit "Source file '${f}' not found."
fi
}
termux_step_pre_configure() {
export OBJCXX="$CXX"
LDFLAGS+=" -landroid-glob -lpcrecpp -lz"
LDFLAGS+=" $($CC -print-libgcc-file-name)"
# Fix build against FFmpeg 6.0:
CPPFLAGS+=" -DCODEC_CAP_TRUNCATED=0"
}