wok view vnc2flv/receipt @ rev 24391

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 07 18:01:05 2022 +0000 (2022-02-07)
parents d1b6fe8c8301
children e717a4953b0e
line source
1 # SliTaz package receipt.
3 PACKAGE="vnc2flv"
4 VERSION="20100207"
5 CATEGORY="network"
6 SHORT_DESC="VNC recorder"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.unixuser.org/~euske/python/vnc2flv"
11 WGET_URL="http://pypi.python.org/packages/source/v/vnc2flv/$TARBALL"
12 SUGGESTED="x11vnc"
13 TAGS="vnc"
15 DEPENDS="python"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://pypi.org/project/$PACKAGE/ 2>/dev/null | \
21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||;q"
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 make
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/$PACKAGE
35 cp -a $src/$PACKAGE/* $fs/usr/share/$PACKAGE
36 }