wok annotate gnome-icon-theme/receipt @ rev 24111

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 28 17:26:43 2021 +0000 (2021-09-28)
parents 86790a278e70
children
rev   line source
pankso@38 1 # SliTaz package receipt.
pankso@38 2
pankso@38 3 PACKAGE="gnome-icon-theme"
al@16734 4 VERSION="3.12.0"
al@19126 5 CATEGORY="customization"
pankso@38 6 SHORT_DESC="Default GNOME icon theme."
pankso@38 7 MAINTAINER="pankso@slitaz.org"
pascal@15022 8 LICENSE="LGPL3"
pascal@13682 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@20421 10 WEB_SITE="https://www.gnome.org/"
slaxemulator@7121 11 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
pankso@38 12
pascal@15022 13 BUILD_DEPENDS="icon-naming-utils intltool pkg-config gtk+"
pascal@15022 14
pascal@24111 15 current_version()
pascal@24111 16 {
pascal@24111 17 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24111 18 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24111 19 }
pascal@24111 20
pankso@38 21 # Rules to configure and make the package.
pankso@38 22 compile_rules()
pankso@38 23 {
pankso@38 24 ./configure --prefix=/usr
pankso@38 25 make
pascal@13682 26 make DESTDIR=$DESTDIR install
pankso@38 27 }
pankso@38 28
pankso@38 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@38 30 genpkg_rules()
pankso@38 31 {
pankso@38 32 mkdir -p $fs/usr/share $fs/usr/lib
pascal@13682 33 cp -a $install/usr/share/icons $fs/usr/share
pankso@38 34 # pkgconfig in /usr/lib
pascal@13682 35 cp -a $install/usr/share/pkgconfig $fs/usr/lib
pankso@38 36 }