wok-current annotate redis/receipt @ rev 24094
Add fasmg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 09 16:49:29 2021 +0000 (2021-08-09) |
parents | a3c45ab9082e |
children | d8c28080cd55 |
rev | line source |
---|---|
nneul@17867 | 1 # SliTaz package receipt. |
nneul@17867 | 2 |
nneul@17867 | 3 PACKAGE="redis" |
Hans-G?nter@23614 | 4 VERSION="5.0.8" |
nneul@17867 | 5 CATEGORY="database" |
Hans-G?nter@23614 | 6 TAGS="database" |
Hans-G?nter@23614 | 7 SHORT_DESC="An open source, BSD licensed, advanced key-value cache and store." |
nneul@17867 | 8 MAINTAINER="nneul@neulinger.org" |
nneul@17867 | 9 LICENSE="BSD" |
Hans-G?nter@23614 | 10 WEB_SITE="https://redis.io/" |
Hans-G?nter@23614 | 11 |
pascal@17869 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@17869 | 13 WGET_URL="http://download.redis.io/releases/$TARBALL" |
Hans-G?nter@23614 | 14 |
Hans-G?nter@23614 | 15 DEPENDS="gcc83-lib-base" |
Hans-G?nter@23614 | 16 BUILD_DEPENDS="gcc83 libxslt" |
nneul@17867 | 17 |
pascal@24083 | 18 current_version() |
pascal@24083 | 19 { |
pascal@24083 | 20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24094 | 21 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*>$PACKAGE-||;s|.t.*||" | sort -Vr | sed q |
pascal@24083 | 22 } |
pascal@24083 | 23 |
nneul@17867 | 24 # Rules to configure and make the package. |
nneul@17867 | 25 compile_rules() |
nneul@17867 | 26 { |
Hans-G?nter@23614 | 27 export LDFLAGS="$LDFLAGS -latomic" |
Hans-G?nter@23614 | 28 |
Hans-G?nter@23614 | 29 make \ |
Hans-G?nter@23614 | 30 CC=gcc-83 \ |
Hans-G?nter@23614 | 31 CXX=g++-83 \ |
Hans-G?nter@23614 | 32 PREFIX=/usr |
nneul@17867 | 33 } |
nneul@17867 | 34 |
nneul@17867 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@17867 | 36 genpkg_rules() |
nneul@17867 | 37 { |
nneul@17867 | 38 mkdir -p $fs/usr/bin |
nneul@17867 | 39 mkdir -p $fs/etc |
Hans-G?nter@23614 | 40 |
Hans-G?nter@23614 | 41 cp -a $src/src/redis-cli $fs/usr/bin |
Hans-G?nter@23614 | 42 cp -a $src/src/redis-server $fs/usr/bin |
Hans-G?nter@23614 | 43 cp -a $src/src/redis-benchmark $fs/usr/bin |
Hans-G?nter@23614 | 44 cp -a $src/src/redis-check-rdb $fs/usr/bin |
Hans-G?nter@23614 | 45 cp -a $src/src/redis-check-aof $fs/usr/bin |
Hans-G?nter@23614 | 46 cp -a $src/redis.conf $fs/etc |
nneul@17867 | 47 } |