wok-6.x view redis/receipt @ rev 25461
foobillardplus: add LDFLAGS for -Wl,--copy-dt-needed-entries
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 28 09:44:06 2022 +0000 (2022-09-28) |
parents | 00b254b52ef6 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="redis"
4 VERSION="7.0.3"
5 CATEGORY="database"
6 TAGS="database"
7 SHORT_DESC="An open source, BSD licensed, advanced key-value cache and store."
8 MAINTAINER="nneul@neulinger.org"
9 LICENSE="BSD"
10 WEB_SITE="https://redis.io/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://download.redis.io/releases/$TARBALL"
15 DEPENDS="gcc83-lib-base libatomic libxslt"
16 BUILD_DEPENDS="gcc83 libatomic libxslt-dev"
18 current_version()
19 {
20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
21 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*>$PACKAGE-||;s|.t.*||" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -latomic"
29 make MALLOC=libc \
30 CC=gcc-83 \
31 CXX=g++-83
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin
38 mkdir -p $fs/etc
40 cp -a $src/redis.conf $fs/etc
41 cp -a $src/src/redis-benchmark $fs/usr/bin
42 cp -a $src/src/redis-cli $fs/usr/bin
43 cp -a $src/src/redis-check-aof $fs/usr/bin
44 # 6.2.6 not created
45 # cp -a $src/src/redis-check-dump $fs/usr/bin
46 cp -a $src/src/redis-check-rdb $fs/usr/bin
47 cp -a $src/src/redis-server $fs/usr/bin
48 }