wok view nrg2iso/receipt @ rev 24500

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 19 19:01:32 2022 +0000 (2022-02-19)
parents 66abd4536e3f
children 6520a4f92e81
line source
1 # SliTaz package receipt.
3 PACKAGE="nrg2iso"
4 VERSION="0.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="Convert CD (or DVD) image generated by Nero Burning Rom to ISO format"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html"
11 WGET_URL="http://gregory.kokanosky.free.fr/v4/linux/$TARBALL"
12 TAGS="CD DVD ISO9660"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - $WEB_SITE 2>/dev/null | \
18 sed "/latest/!d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 make
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin
31 cp $src/nrg2iso $fs/usr/bin
32 }