wok-6.x diff metacity/receipt @ rev 25438
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 01 11:12:31 2022 +0000 (23 months ago) |
parents | 0840763b8546 |
children | 73f36875e5a7 |
line diff
1.1 --- a/metacity/receipt Wed Mar 11 17:26:57 2020 +0100 1.2 +++ b/metacity/receipt Thu Sep 01 11:12:31 2022 +0000 1.3 @@ -7,9 +7,8 @@ 1.4 MAINTAINER="al.bobylev@gmail.com" 1.5 LICENSE="GPL2" 1.6 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.7 -HI_VERSION=$(echo $VERSION | sed 's|\([0-9\.]*\)\.[0-9]*|\1|') 1.8 WEB_SITE="http://blogs.gnome.org/metacity/" 1.9 -WGET_URL="http://ftp.acc.umu.se/pub/gnome/sources/metacity/$HI_VERSION/$TARBALL" 1.10 +WGET_URL="http://ftp.acc.umu.se/pub/gnome/sources/metacity/${VERSION%.*}/$TARBALL" 1.11 1.12 DEPENDS="gsettings-desktop-schemas libgio glib gtk+ xorg-libXcomposite \ 1.13 xorg-libXdamage zenity xorg-libXinerama xorg-libXrandr xorg-libXcursor \ 1.14 @@ -20,6 +19,15 @@ 1.15 libogg-dev libtool gnome-doc-utils-dev GConf-dev util-linux-uuid-dev \ 1.16 dbus-glib-dev file" 1.17 1.18 +# What is the latest version available today? 1.19 +current_version() 1.20 +{ 1.21 + wget -O - ${WGET_URL%/*/*}/$( \ 1.22 + wget -O - ${WGET_URL%/*/*} 2>/dev/null | \ 1.23 + sed '/href="[0-9]/!d;s|.*href="||;s|".*||' | sort -Vr | sed q) 2>/dev/null | \ 1.24 + sed '/metacity-[0-9]/!d;/tar/!d;s|.*metacity-||;s|.tar.*||' | sort -Vr | sed q 1.25 +} 1.26 + 1.27 # Rules to configure and make the package. 1.28 compile_rules() 1.29 {