termux-packages/packages/memcached/build.sh

23 lines
985 B
Bash
Raw Normal View History

2017-04-22 00:48:19 +02:00
TERMUX_PKG_HOMEPAGE=https://memcached.org/
TERMUX_PKG_DESCRIPTION="Free & open source, high-performance, distributed memory object caching system"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="GPL-2.0"
2020-02-10 13:07:18 +01:00
TERMUX_PKG_VERSION=1.5.22
2018-05-25 21:15:00 +02:00
TERMUX_PKG_SRCURL=https://www.memcached.org/files/memcached-$TERMUX_PKG_VERSION.tar.gz
2020-02-10 13:07:18 +01:00
TERMUX_PKG_SHA256=c2b47e9d20575a2367087c229636ffc3fb699a6c3a7f3a22f44402f25f5f1f93
2017-04-22 00:48:19 +02:00
TERMUX_PKG_DEPENDS="libevent, libsasl"
TERMUX_PKG_BREAKS="memcached-dev"
TERMUX_PKG_REPLACES="memcached-dev"
TERMUX_PKG_BUILD_IN_SRC=true
2019-05-21 14:24:24 +02:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-sasl --disable-coverage"
2017-04-22 00:48:19 +02:00
termux_step_pre_configure() {
export ac_cv_c_endian=little
# fix SASL configuration path
perl -p -i -e "s#/etc/sasl#$TERMUX_PREFIX/etc/sasl#" $TERMUX_PKG_BUILDDIR/sasl_defs.c
# getsubopt() taken from https://github.com/lxc/lxc/blob/master/src/include/getsubopt.c
cp $TERMUX_PKG_BUILDER_DIR/getsubopt.c $TERMUX_PKG_SRCDIR
cp $TERMUX_PKG_BUILDER_DIR/getsubopt.h $TERMUX_PKG_SRCDIR
2017-10-14 23:57:39 +02:00
}