mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-12 04:41:03 +00:00
- Drop `do-not-install-hiredis-files.patch` - no longer necessary - Rebase `pthread_cancel.patch` - removing new instance of `pthread_testcancel()` appears to be OK, because in this package, `pthread_kill()` is used to immediately kill all the threads it is used on, eliminating the need for `pthread_testcancel()` (as opposed to, for example, `nwipe`, where `pthread_testcancel()` is replaced differently because `pthread_cancel()` is replaced differently) - Rebase `setproctitle.patch`
31 lines
1.0 KiB
Bash
31 lines
1.0 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://valkey.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"
|
|
TERMUX_PKG_VERSION="9.0.1"
|
|
TERMUX_PKG_SRCURL="https://github.com/valkey-io/valkey/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz"
|
|
TERMUX_PKG_SHA256=9cfbc5f32a2a6058ee0f8c532b9c4d24167cc49d719f091dd75f1bb8353a1fc5
|
|
TERMUX_PKG_AUTO_UPDATE=false
|
|
TERMUX_PKG_DEPENDS="libandroid-execinfo, libandroid-glob"
|
|
TERMUX_PKG_CONFFILES="etc/valkey.conf"
|
|
TERMUX_PKG_BREAKS="redis"
|
|
TERMUX_PKG_CONFLICTS="redis"
|
|
TERMUX_PKG_REPLACES="redis"
|
|
TERMUX_PKG_PROVIDES="redis"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
|
|
-DBUILD_MALLOC=libc
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
CPPFLAGS+=" -DHAVE_BACKTRACE"
|
|
CFLAGS+=" $CPPFLAGS"
|
|
LDFLAGS+=" -landroid-execinfo -landroid-glob"
|
|
|
|
( cd "$TERMUX_PKG_SRCDIR/src" && ./mkreleasehdr.sh )
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
install -Dm600 "$TERMUX_PKG_SRCDIR/valkey.conf" "$TERMUX_PREFIX/etc/valkey.conf"
|
|
}
|