wok-current view sharedance/receipt @ rev 24540
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 16:54:57 2022 +0000 (2022-02-23) |
parents | e6b7a2aaf2e1 |
children | 3b19fa0b9a88 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sharedance"
4 VERSION="0.6"
5 CATEGORY="network"
6 SHORT_DESC="High-performance server to centralize ephemeral key/data."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://web.archive.org/web/20180128000525/https://www.pureftpd.org/project/sharedance"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://download.pureftpd.org/pub/sharedance/$TARBALL"
13 DEPENDS="libevent"
14 BUILD_DEPENDS="libevent-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure $CONFIGURE_ARGS && make && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $install/* $fs
33 }