wok-6.x view miniupnpc/receipt @ rev 24313
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 21 10:59:24 2022 +0000 (2022-01-21) |
parents | 9aa658b57a83 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="miniupnpc"
4 VERSION="2.1"
5 CATEGORY="network"
6 SHORT_DESC="UPnP Internet Gateway Device (IGD) specifications client."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="${PACKAGE}_${VERSION/./_}.tar.gz"
10 WEB_SITE="http://miniupnp.tuxfamily.org/"
11 WGET_URL="https://github.com/miniupnp/miniupnp/archive/$TARBALL"
12 TAGS="upnp"
14 DEPENDS=""
15 BUILD_DEPENDS=""
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;/miniupnpc/!d;s|.*/miniupnpc_\(.*\).tar.*|\1|;s|_|.|g;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src/miniupnpc
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 }