wok-6.x view memcached/receipt @ rev 24427

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 12 11:42:56 2022 +0000 (2022-02-12)
parents 3ae2d1f7b186
children 336e9ab0d78c
line source
1 # SliTaz package receipt.
3 PACKAGE="memcached"
4 VERSION="1.6.6"
5 CATEGORY="system-tools"
6 SHORT_DESC="High-performance, distributed memory object caching system."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://memcached.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}files/$TARBALL"
14 DEPENDS="libevent"
15 BUILD_DEPENDS="libevent-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/id="ver"/!d;s|.*>v||;s|<.*||'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure $CONFIGURE_ARGS &&
28 make &&
29 make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir $fs/usr
36 cp -a $install/usr/bin $fs/usr
37 }