wok view udpxy/receipt @ rev 24082

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 09 18:20:09 2021 +0000 (2021-07-09)
parents b27ecf21e67c
children ac8ca9758df1
line source
1 # SliTaz package receipt.
3 PACKAGE="udpxy"
4 VERSION="1.0.24.1"
5 CATEGORY="network"
6 SHORT_DESC="An UDP-to-HTTP multicast traffic relay daemon."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.udpxy.com/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/pcherenkov/$PACKAGE/archive/${VERSION%.*.*}-${VERSION#*.*.}.tar.gz"
14 current_version()
15 {
16 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
17 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;s|-|.|;q'
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd chipmunk &&
24 make &&
25 make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr
32 cp -a $install/usr/local/bin $fs/usr
33 }