wok view slitaz-tango-icon/receipt @ rev 24330
updated atftp and atftpd (0.7.2 -> 0.7.5)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jan 27 15:48:06 2022 +0100 (2022-01-27) |
parents | 15e8d94fc34f |
children | 870e1ce31226 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-tango-icon"
4 VERSION="1.7"
5 CATEGORY="misc"
6 SHORT_DESC="Tango icons unofficial in size 16x16 and 32x32 (minimum)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://tango-project.org/"
11 WGET_URL="http://download.tuxfamily.org/slitaz/sources/artwok/$TARBALL"
13 current_version()
14 {
15 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
16 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
17 }
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 genpkg_rules()
21 {
22 mkdir -p $fs/usr/share/icons
23 cp -a $src/* $fs/usr/share/icons
24 chown -R root.root $fs
25 }
27 qtfix="usr/share/icons/hicolor/index.theme"
29 post_install()
30 {
31 sed '/Inherits=/s|=.*$|=Tango|' -i "$1/$qtfix"
32 }
34 pre_remove()
35 {
36 sed '/Inherits=/s|=.*$|=SliTaz|' -i "$1/$qtfix"
37 }