wok-current view vcdimager/receipt @ rev 24819

libnsl: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 23 09:20:46 2022 +0000 (2022-03-23)
parents 4a6cec986bf8
children
line source
1 # SliTaz package receipt
3 PACKAGE="vcdimager"
4 VERSION="2.0.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="vcd tools"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.vcdimager.org/"
11 WGET_URL="http://ftp.gnu.org/gnu/vcdimager/$TARBALL"
12 TAGS="multimedia video vcd"
14 DEPENDS="libcdio libxml2 popt"
15 BUILD_DEPENDS="libcdio libcdio-dev libxml2-dev popt-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure $CONFIGURE_ARGS &&
28 make && make 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 }