redis: reformat build.sh

This commit is contained in:
Leonid Pliushch 2019-08-13 18:28:12 +03:00
parent 666aa8b4b4
commit 8fbde3f3d0

View File

@ -8,16 +8,16 @@ TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_CONFFILES="etc/redis.conf" TERMUX_PKG_CONFFILES="etc/redis.conf"
termux_step_pre_configure() { termux_step_pre_configure() {
export PREFIX=$TERMUX_PREFIX export PREFIX=$TERMUX_PREFIX
export USE_JEMALLOC=no export USE_JEMALLOC=no
LDFLAGS+=" -llog" LDFLAGS+=" -llog"
if [ $TERMUX_ARCH = "i686" ]; then if [ $TERMUX_ARCH = "i686" ]; then
sed -i 's/FINAL_LIBS=-lm/FINAL_LIBS=-lm -latomic/' $TERMUX_PKG_SRCDIR/src/Makefile sed -i 's/FINAL_LIBS=-lm/FINAL_LIBS=-lm -latomic/' $TERMUX_PKG_SRCDIR/src/Makefile
fi fi
} }
termux_step_post_make_install() { termux_step_post_make_install() {
cp $TERMUX_PKG_SRCDIR/redis.conf $TERMUX_PREFIX/etc/redis.conf install -Dm600 $TERMUX_PKG_SRCDIR/redis.conf $TERMUX_PREFIX/etc/redis.conf
} }