wok-6.x annotate adwaita-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 | 4945e6088799 |
children | a273d5a1ae50 |
rev | line source |
---|---|
al@19075 | 1 # SliTaz package receipt. |
al@19075 | 2 |
al@19075 | 3 PACKAGE="adwaita-icon-theme" |
Hans-G?nter@22472 | 4 VERSION="3.34.3" |
pascal@24111 | 5 SERIES="${VERSION%.*}" # first two numbers from version |
al@19126 | 6 CATEGORY="customization" |
Hans-G?nter@22472 | 7 SHORT_DESC="A collection of icons used at the basis for GNOME themes." |
al@19075 | 8 MAINTAINER="al.bobylev@gmail.com" |
al@19075 | 9 LICENSE="LGPL3 CC-BY-SA-3" |
al@19075 | 10 WEB_SITE="https://github.com/GNOME/adwaita-icon-theme" |
Hans-G?nter@22472 | 11 |
al@19075 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19075 | 13 WGET_URL="$GNOME_MIRROR/$PACKAGE/$SERIES/$TARBALL" |
al@19075 | 14 |
al@19075 | 15 DEPENDS="" |
al@19075 | 16 BUILD_DEPENDS="" |
al@19075 | 17 |
pascal@24111 | 18 current_version() |
pascal@24111 | 19 { |
pascal@24111 | 20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24111 | 21 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24111 | 22 } |
pascal@24111 | 23 |
al@19075 | 24 # Rules to configure and make the package. |
al@19075 | 25 compile_rules() |
al@19075 | 26 { |
Hans-G?nter@22472 | 27 ./configure \ |
Hans-G?nter@22472 | 28 --prefix=/usr \ |
al@19075 | 29 $CONFIGURE_ARGS && |
Hans-G?nter@22472 | 30 make && |
Hans-G?nter@22472 | 31 make install |
al@19075 | 32 } |
al@19075 | 33 |
al@19075 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19075 | 35 genpkg_rules() |
al@19075 | 36 { |
al@19075 | 37 cp -a $install/* $fs |
al@19075 | 38 rm -r $fs/usr/share/pkgconfig |
al@19075 | 39 } |