chiark / gitweb /
pass: Add comment on why we depend on coreutils
[termux-packages] / packages / redis / build.sh
1 TERMUX_PKG_HOMEPAGE=https://redis.io/
2 TERMUX_PKG_DESCRIPTION="In-memory data structure store used as a database, cache and message broker"
3 TERMUX_PKG_VERSION=4.0.1
4 TERMUX_PKG_SHA256=2049cd6ae9167f258705081a6ef23bb80b7eff9ff3d0d7481e89510f27457591
5 TERMUX_PKG_SRCURL=http://download.redis.io/releases/redis-$TERMUX_PKG_VERSION.tar.gz
6 TERMUX_PKG_BUILD_IN_SRC=yes
7 TERMUX_PKG_CONFFILES="etc/redis.conf"
8
9 termux_step_pre_configure() {
10     export PREFIX=$TERMUX_PREFIX
11     export USE_JEMALLOC=no
12
13     LDFLAGS+=" -llog"
14
15     if [ $TERMUX_ARCH = "i686" ]; then
16             sed -i 's/FINAL_LIBS=-lm/FINAL_LIBS=-lm -latomic/' $TERMUX_PKG_SRCDIR/src/Makefile
17     fi
18 }
19
20 termux_step_post_make_install() {
21     cp $TERMUX_PKG_SRCDIR/redis.conf $TERMUX_PREFIX/etc/redis.conf
22 }