wok annotate matchbox-desktop-2/receipt @ rev 24453

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 15 18:29:48 2022 +0000 (2022-02-15)
parents d3eb5f4b53ea
children d358ff3c7097
rev   line source
pascal@11556 1 # SliTaz package receipt.
pascal@11556 2
pascal@11556 3 PACKAGE="matchbox-desktop-2"
pascal@11556 4 VERSION="2.0"
pascal@11556 5 CATEGORY="x-window"
pascal@11556 6 SHORT_DESC="Matchbox desktop v2."
pascal@11556 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@11556 9 SOURCE="matchbox-desktop"
pascal@11556 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
pascal@11556 11 WEB_SITE="http://matchbox-project.org/"
pascal@17869 12 WGET_URL="${WEB_SITE}sources/$SOURCE/$VERSION/$TARBALL"
pascal@11556 13
pankso@12481 14 DEPENDS="gtk+ dbus dbus-glib util-linux-uuid"
pankso@12481 15 BUILD_DEPENDS="gtk+-dev dbus-dev dbus-glib-dev util-linux-uuid-dev"
pascal@11556 16
pascal@24453 17 # What is the latest version available today?
pascal@24453 18 current_version()
pascal@24453 19 {
pascal@24453 20 wget -O - http://mirrors.kernel.org/yocto/matchbox/matchbox-desktop/$( \
pascal@24453 21 wget -O - http://mirrors.kernel.org/yocto/matchbox/matchbox-desktop/ 2>/dev/null | \
pascal@24453 22 sed '/href="2/!d;s|.*="||;s|/.*||' | sort -Vr | sed q)/ 2>/dev/null | \
pascal@24453 23 sed '/href="matchbox-desktop-[0-9]/!d;s|.*="matchbox-desktop-||;s|.tar.*||' | sort -Vr | sed q
pascal@24453 24 }
pascal@24453 25
pascal@11556 26 # Rules to configure and make the package.
pascal@11556 27 compile_rules()
pascal@11556 28 {
pascal@12653 29 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
pascal@17670 30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
pascal@12653 31
pascal@11556 32 ./configure \
pascal@11556 33 --disable-startup-notification \
pascal@11556 34 $CONFIGURE_ARGS &&
pascal@11556 35 make && make install
pascal@11556 36 }
pascal@11556 37
pascal@11556 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11556 39 genpkg_rules()
pascal@11556 40 {
pascal@11556 41 mkdir -p $fs/usr
pascal@11556 42 cp -a $install/usr/bin $fs/usr
pascal@11556 43 }