wok annotate cd-discid/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 c552db5929eb
children
rev   line source
domcox@6119 1 # SliTaz package receipt.
domcox@6119 2
domcox@6119 3 PACKAGE="cd-discid"
Hans-G?nter@20772 4 VERSION="1.4"
domcox@6119 5 CATEGORY="multimedia"
Hans-G?nter@20772 6 TAGS="audio CD CDDB"
domcox@6119 7 SHORT_DESC="Utility to get CDDB discid information from a CD-ROM disc"
domcox@6119 8 MAINTAINER="domcox@slitaz.org"
pascal@15001 9 LICENSE="GPL2"
al@14742 10 WEB_SITE="http://linukz.org/cd-discid.shtml"
Hans-G?nter@20772 11
al@14742 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@14742 13 WGET_URL="http://linukz.org/download/$TARBALL"
al@14742 14
domcox@6119 15 DEPENDS=""
domcox@6119 16
pascal@24436 17 # What is the latest version available today?
pascal@24436 18 current_version()
pascal@24436 19 {
pascal@24436 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24436 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24436 22 }
pascal@24436 23
domcox@6119 24 # Rules to configure and make the package.
domcox@6119 25 compile_rules()
domcox@6119 26 {
Hans-G?nter@20772 27 make PREFIX=/usr &&
Hans-G?nter@20772 28 make PREFIX=/usr DESTDIR=$install install
domcox@6119 29 }
domcox@6119 30
domcox@6119 31 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@6119 32 genpkg_rules()
domcox@6119 33 {
domcox@6119 34 mkdir -p $fs/usr
al@14742 35 cp -a $install/usr/bin $fs/usr
domcox@6119 36 }