termux-packages/packages/ccnet/build.sh
Leonid Pliushch c352216c63 packages: standardize values of several control variables for build.sh
Variables

 TERMUX_PKG_PLATFORM_INDEPENDENT
 TERMUX_DEBUG
 TERMUX_PKG_HAS_DEBUG
 TERMUX_PKG_ESSENTIAL
 TERMUX_SUBPKG_ESSENTIAL
 TERMUX_PKG_NO_STATICSPLIT
 TERMUX_PKG_BUILD_IN_SRC
 TERMUX_PKG_FORCE_CMAKE
 TERMUX_PKG_HOSTBUILD

should not accept arbitrary values for marking them "enabled". Instead
they should accept boolean values which makes them easier to handle and
also makes their meaning clear.

build-package.sh should make decision based on variable's value but not on
whether it is set or empty.

%ci:no-build
2019-08-12 18:49:13 +03:00

22 lines
770 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/haiwen/ccnet
TERMUX_PKG_DESCRIPTION="Ccnet is a framework for writing networked applications in C"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=6.1.8
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/haiwen/ccnet/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=b55636bf95232dc1db70d3604d0bebb7c3d730292d15b9b6c5b951307eb69762
TERMUX_PKG_DEPENDS="libuuid, libevent, libsearpc, libsqlite, openssl"
TERMUX_PKG_BREAKS="ccnet-dev"
TERMUX_PKG_REPLACES="ccnet-dev"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
./autogen.sh
}
termux_step_post_configure() {
# the package has trouble to prepare some headers
cd $TERMUX_PKG_SRCDIR/lib
python $TERMUX_PREFIX/bin/searpc-codegen.py ../lib/rpc_table.py
}