wok view aldo/receipt @ rev 24373
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 05 16:12:08 2022 +0000 (2022-02-05) |
parents | 11b5e93cb5f2 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="aldo"
4 VERSION="0.7.7"
5 CATEGORY="misc"
6 SHORT_DESC="Morse code learning tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.nongnu.org/aldo/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://savannah.nongnu.org/download/$PACKAGE/$TARBALL"
13 DEPENDS="libao"
14 BUILD_DEPENDS="libao-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed "/atest/!d;/$PACKAGE-/!d;s|.*$PACKAGE-\\(.*\\)<.*|\\1|"
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --prefix=/usr \
28 --mandir=/usr/share/man \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/usr/bin $fs/usr
39 }