wok-current annotate speakup-utils/receipt @ rev 24462

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 16 21:07:01 2022 +0000 (2022-02-16)
parents 3b4e4318134e
children bc2b9d9bed6f
rev   line source
slaxemulator@9176 1 # SliTaz package receipt.
slaxemulator@9176 2
slaxemulator@9176 3 PACKAGE="speakup-utils"
slaxemulator@9176 4 VERSION="3.1.6"
slaxemulator@9176 5 CATEGORY="misc"
slaxemulator@9176 6 SHORT_DESC="Tiny utilities for controlling the Speakup screenreader"
slaxemulator@9176 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15593 8 LICENSE="GPL2"
slaxemulator@9176 9 SOURCE="speakup"
slaxemulator@9176 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
slaxemulator@9176 11 WEB_SITE="http://linux-speakup.org/"
pascal@9189 12 WGET_URL="ftp://linux-speakup.org/pub/speakup/$TARBALL"
slaxemulator@9176 13
pascal@15593 14 DEPENDS="linux-speakup"
pascal@15593 15
pascal@24462 16 # What is the latest version available today?
pascal@24462 17 current_version()
pascal@24462 18 {
pascal@24462 19 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24462 20 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|;s|_.*||" | sort -Vr | sed q
pascal@24462 21 }
pascal@24462 22
slaxemulator@9176 23 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9176 24 genpkg_rules()
slaxemulator@9176 25 {
slaxemulator@9176 26 cd $src/tools
slaxemulator@9176 27 install -D -m755 speakupconf "$fs/usr/bin/speakupconf" || return 1
slaxemulator@9176 28 install -D -m755 talkwith "$fs/usr/sbin/talkwith" || return 1
slaxemulator@9176 29 }