2017-03-07 14:31:25 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://redis.io/
|
2017-07-16 15:10:10 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="In-memory data structure store used as a database, cache and message broker"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-07-17 23:28:56 +02:00
|
|
|
TERMUX_PKG_VERSION=6.2.4
|
2017-03-07 14:31:25 +01:00
|
|
|
TERMUX_PKG_SRCURL=http://download.redis.io/releases/redis-$TERMUX_PKG_VERSION.tar.gz
|
2021-07-17 23:28:56 +02:00
|
|
|
TERMUX_PKG_SHA256=ba32c406a10fc2c09426e2be2787d74ff204eb3a2e496d87cff76a476b6ae16e
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2017-03-07 14:31:25 +01:00
|
|
|
TERMUX_PKG_CONFFILES="etc/redis.conf"
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
2019-08-13 17:28:12 +02:00
|
|
|
export PREFIX=$TERMUX_PREFIX
|
|
|
|
export USE_JEMALLOC=no
|
2017-03-07 14:31:25 +01:00
|
|
|
|
2019-08-13 17:28:12 +02:00
|
|
|
if [ $TERMUX_ARCH = "i686" ]; then
|
2019-12-30 01:05:41 +01:00
|
|
|
sed -i 's/FINAL_LIBS=-lm/FINAL_LIBS=-lm -latomic/' $TERMUX_PKG_SRCDIR/src/Makefile
|
2019-08-13 17:28:12 +02:00
|
|
|
fi
|
2017-03-07 14:31:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
2019-08-13 17:28:12 +02:00
|
|
|
install -Dm600 $TERMUX_PKG_SRCDIR/redis.conf $TERMUX_PREFIX/etc/redis.conf
|
2017-05-21 09:08:22 +02:00
|
|
|
}
|