Files
termux-packages/packages/redis/build.sh
termux-pacman-bot 821ff580c9 revert(main/redis): freeze version at 7.2.5 pending replacement (#20999)
Redis 7.4.0 introduces the new restrictively
RSALv2/SSPLv1 "source available" license model.
Until a final determination is made on it,
freeze Redis at the last BSD licensed version 7.2.5

This reverts commit f91c3b5b4a526fe585cb6407e2f4e18c4964708c.
2024-07-30 01:35:20 +00:00

26 lines
922 B
Bash

TERMUX_PKG_HOMEPAGE=https://redis.io/
TERMUX_PKG_DESCRIPTION="In-memory data structure store used as a database, cache and message broker"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
# Frozen! Do not update to 7.4.0
# until the license/replacement discussion is concluded
TERMUX_PKG_VERSION="1:7.2.5"
TERMUX_PKG_SRCURL=https://download.redis.io/releases/redis-${TERMUX_PKG_VERSION:2}.tar.gz
TERMUX_PKG_SHA256=5981179706f8391f03be91d951acafaeda91af7fac56beffb2701963103e423d
TERMUX_PKG_DEPENDS="libandroid-execinfo, libandroid-glob"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_CONFFILES="etc/redis.conf"
termux_step_pre_configure() {
export PREFIX=$TERMUX_PREFIX
export USE_JEMALLOC=no
CPPFLAGS+=" -DHAVE_BACKTRACE"
CFLAGS+=" $CPPFLAGS"
LDFLAGS+=" -landroid-execinfo -landroid-glob"
}
termux_step_post_make_install() {
install -Dm600 $TERMUX_PKG_SRCDIR/redis.conf $TERMUX_PREFIX/etc/redis.conf
}