mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-19 16:52:16 +00:00
5c3fbf9985
Revbump some python packages after python 3.12 (#18078).
27 lines
997 B
Bash
27 lines
997 B
Bash
TERMUX_PKG_HOMEPAGE=https://www.ledger-cli.org
|
|
TERMUX_PKG_DESCRIPTION="Powerful, double-entry accounting system"
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="3.3.2"
|
|
TERMUX_PKG_REVISION=3
|
|
TERMUX_PKG_SRCURL=https://github.com/ledger/ledger/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=555296ee1e870ff04e2356676977dcf55ebab5ad79126667bc56464cb1142035
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="boost, libc++, libedit, libmpfr, libgmp, python"
|
|
TERMUX_PKG_BUILD_DEPENDS="boost-headers, utf8cpp"
|
|
TERMUX_PKG_BREAKS="ledger-dev"
|
|
TERMUX_PKG_REPLACES="ledger-dev"
|
|
# See https://gitlab.kitware.com/cmake/cmake/issues/18865:
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-DBoost_NO_BOOST_CMAKE=ON
|
|
-DUSE_PYTHON=ON
|
|
-DUTFCPP_PATH=$TERMUX_PREFIX/include/utf8cpp
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
sed $TERMUX_PKG_BUILDER_DIR/CMakeLists.diff \
|
|
-e "s%@TERMUX_PREFIX@%${TERMUX_PREFIX}%g" \
|
|
-e "s%@PYTHON_VERSION@%${TERMUX_PYTHON_VERSION}%g" \
|
|
| patch --silent -p1
|
|
}
|