wok-6.x view mjpegtools/receipt @ rev 24402

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 08 16:59:06 2022 +0000 (2022-02-08)
parents e22141bc1b8a
children ab377f6a6568
line source
1 # SliTaz package receipt.
3 PACKAGE="mjpegtools"
4 VERSION="2.1.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="MPEG manipulation tools."
7 TAGS="mpeg mjpeg video"
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://mjpeg.sourceforge.io/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/mjpeg/$TARBALL"
15 DEPENDS="expat gcc-lib-base gtk+ jpeg libdv libsdl libsdl-gfx xorg-libX11 xorg-libXau \
16 xorg-libXcomposite xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes \
17 xorg-libXinerama xorg-libXrandr xorg-libXrender xorg-libXdamage"
18 BUILD_DEPENDS="$DEPENDS libdv-dev libsdl-gfx-dev jpeg-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/mjpeg/files/mjpegtools/ 2>/dev/null | \
24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
25 sed '/scope="row/!d;s|.*/mjpegtools/||;s|/.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 --prefix=/usr \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make -j 1 &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 }