wok view igmpproxy/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents eecd843ce61a
children 7de87766c29c
line source
1 # SliTaz package receipt.
3 PACKAGE="igmpproxy"
4 VERSION="0.2.1"
5 CATEGORY="network"
6 SHORT_DESC="Simple forwarding of Multicast traffic between networks."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/pali/igmpproxy"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/releases/download/$VERSION/$TARBALL"
14 current_version()
15 {
16 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
17 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ./configure \
24 --prefix=/usr \
25 --infodir=/usr/share/info \
26 --sysconfdir=/etc \
27 --mandir=/usr/share/man \
28 $CONFIGURE_ARGS &&
29 make -j 1 &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/
38 cp -a $install/etc $fs
39 cp -a $install/usr/sbin $fs/usr
40 }