wok-current view rtmpdump/receipt @ rev 24497
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 14:19:02 2022 +0000 (2022-02-19) |
parents | a12d1999be3d |
children | e717a4953b0e |
line source
1 # SliTaz package receipt.
3 PACKAGE="rtmpdump"
4 VERSION="2.4"
5 CATEGORY="multimedia"
6 SHORT_DESC="A toolkit for RTMP streams."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://rtmpdump.mplayerhq.hu/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://rtmpdump.mplayerhq.hu/download/$TARBALL"
14 DEPENDS="libssl"
15 BUILD_DEPENDS="openssl-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/latest rel/!d;s|.* is ||;s| .*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 mkdir -p $DESTDIR/usr/lib
28 make &&
29 make install \
30 prefix="/usr" \
31 sbindir="/usr/bin" \
32 mandir="/usr/share/man" \
33 DESTDIR="$DESTDIR"
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 cp -a $install/usr/bin $fs/usr
43 }