wok-current view xfce4-icon-theme/receipt @ rev 24415
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 10 18:04:02 2022 +0000 (2022-02-10) |
parents | a78610b2eb47 |
children | bd7510903310 |
line source
1 # SliTaz package receipt.
3 PACKAGE="xfce4-icon-theme"
4 VERSION="4.4.3"
5 CATEGORY="customization"
6 SHORT_DESC="Icon theme for Xfce Desktop Environment"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://www.xfce.org/"
11 WGET_URL="http://archive.xfce.org/src/art/$PACKAGE/${VERSION%.*}/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS="intltool"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*/*}/$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
20 sed '/href="/!d;/Index of/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \
21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 ./configure --prefix=/usr --infodir=/usr/share/info \
29 --mandir=/usr/share/man $CONFIGURE_ARGS && \
30 make && make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 # Remove SVG Icons
37 #find $install/usr/share -name "*scalable*" -exec rm -rf {} \;
39 mkdir -p $fs/usr
40 cp -a $install/usr/share $fs/usr
41 }