redis: reformat build.sh

This commit is contained in:
Leonid Pliushch 2019-08-13 18:28:12 +03:00
parent 666aa8b4b4
commit 8fbde3f3d0
1 changed files with 7 additions and 7 deletions

View File

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