wok-6.x annotate x11rec/receipt @ rev 25445

itaka: fix wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 06 07:38:52 2022 +0000 (2022-09-06)
parents 3224f68a9d14
children
rev   line source
pascal@17418 1 # SliTaz package receipt.
pascal@17418 2
pascal@17418 3 PACKAGE="x11rec"
pascal@17418 4 VERSION="0.3"
pascal@17418 5 CATEGORY="x-window"
pascal@17418 6 SHORT_DESC="A very ad hoc X11 recorder."
pascal@17418 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17418 8 LICENSE="GPL2"
pascal@17418 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@17418 10 WEB_SITE="http://0xcc.net/x11rec"
pascal@17418 11 WGET_URL="$WEB_SITE/$TARBALL"
pascal@17418 12
pascal@17418 13 DEPENDS="ruby imagemagick xorg-xwininfo gifsicle"
pascal@17418 14
pascal@24425 15 # What is the latest version available today?
pascal@24425 16 current_version()
pascal@24425 17 {
pascal@24425 18 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 19 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24425 20 }
pascal@24425 21
pascal@17418 22 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17418 23 genpkg_rules()
pascal@17418 24 {
pascal@17418 25 mkdir -p $fs/usr/bin
pascal@17418 26 cp -a $src/x11rec $fs/usr/bin
pascal@17418 27 }