ledger and its dependancy utf8cpp (#976)

* ledger and its dependancy utf8cpp

fix typo

compiles python lib

enable icu in ledger

* simplify everything for now
This commit is contained in:
its-pointless 2017-05-07 07:48:01 +10:00 committed by Fredrik Fornwall
parent 43e7370c91
commit 05c3e6019b
3 changed files with 34 additions and 5 deletions

11
ledger/build.sh Normal file
View File

@ -0,0 +1,11 @@
TERMUX_PKG_HOMEPAGE=http://ledger-cli.org/
TERMUX_PKG_DESCRIPTION="Powerful, double-entry accounting system"
TERMUX_PKG_VERSION=3.1.1
TERMUX_PKG_SRCURL=https://github.com/ledger/ledger/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_FOLDERNAME="ledger-${TERMUX_PKG_VERSION}"
TERMUX_PKG_SHA256=90f06561ab692b192d46d67bc106158da9c6c6813cc3848b503243a9dfd8548a
#TERMUX_PKG_DEPENDS="boost, utf8cpp"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DBOOST_MAKE_SETTER_RUNS_EXITCODE=0"
termux_step_pre_configure() {
CXXFLAGS+=" -std=c++11"
}

View File

@ -1,9 +1,10 @@
# This package depends on boost, which is not yet available:
# https://github.com/ledger/ledger#user-content-dependencies
TERMUX_PKG_HOMEPAGE=http://ledger-cli.org/
TERMUX_PKG_DESCRIPTION="Powerful, double-entry accounting system"
TERMUX_PKG_VERSION=3.1
TERMUX_PKG_VERSION=3.1.1
TERMUX_PKG_SRCURL=https://github.com/ledger/ledger/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_FOLDERNAME="ledger-${TERMUX_PKG_VERSION}"
# TERMUX_PKG_DEPENDS="..."
TERMUX_PKG_SHA256=90f06561ab692b192d46d67bc106158da9c6c6813cc3848b503243a9dfd8548a
TERMUX_PKG_DEPENDS="libedit, boost, utf8cpp"
termux_step_pre_configure() {
CXXFLAGS+=" -std=c++11"
}

17
packages/utf8cpp/build.sh Normal file
View File

@ -0,0 +1,17 @@
TERMUX_PKG_HOMEPAGE=http://utfcpp.sourceforge.net/
TERMUX_PKG_DESCRIPTION="UTF8-CPP: UTF-8 with C++ in a Portable Way"
TERMUX_PKG_VERSION=2.3.4
TERMUX_PKG_SRCURL=http://pkgs.fedoraproject.org/repo/extras/utf8cpp/utf8_v2_3_4.zip/c5e9522fde3debcad5e8922d796b2bd0/utf8_v2_3_4.zip
TERMUX_PKG_SHA256=3373cebb25d88c662a2b960c4d585daf9ae7b396031ecd786e7bb31b15d010ef
TERMUX_PKG_FOLDERNAME="source"
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_NO_DEVELSPLIT=yes
termux_step_configure() {
return 0;
}
termux_step_make() {
return 0;
}
termux_step_make_install(){
cp * -r $TERMUX_PREFIX/include
}