wok view cddetect/receipt @ rev 24436

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 13 13:09:42 2022 +0000 (2022-02-13)
parents 66abd4536e3f
children bc2b9d9bed6f
line source
1 # SliTaz package receipt.
3 PACKAGE="cddetect"
4 VERSION="2.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Tries to detect the type of a CD/DVD without mounting it"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.bellut.net/projects.html#cddetect"
11 WGET_URL="http://www.bellut.net/files/$TARBALL"
12 TAGS="CD DVD"
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 #sed -i 's|-Wall|& -Wno-pointer-sign|' Makefile
25 sed -i 's/<stdio.h>/&\n#include <limits.h>/' cddetect.c
26 make
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin
33 cp $src/cddetect $fs/usr/bin
34 }