Browse Source

redis: reformat build.sh

emacs-27
Leonid Plyushch 6 years ago
parent
commit
b357110590
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 14
      packages/redis/build.sh

14
packages/redis/build.sh

@ -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
} }

Loading…
Cancel
Save