wok view mist-icon-theme/receipt @ rev 25674

tiptop: race condition
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 28 11:10:12 2024 +0000 (2 months ago)
parents d66160614dc4
children
line source
1 # SliTaz package receipt.
3 PACKAGE="mist-icon-theme"
4 VERSION="1-X"
5 CATEGORY="customization"
6 SHORT_DESC="Classic light-blue variation of the GNOME icon theme"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="LGPL"
9 WEB_SITE="https://xfce-look.org/content/show.php/Mist?content=148172"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL"
13 DEPENDS="gnome-icon-theme"
14 BUILD_DEPENDS="wget"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/lapo/mist-icon-theme/commits/master 2>/dev/null | \
20 sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 iconpath=usr/share/icons/mist
27 mkdir -p $fs/$iconpath
28 cp -a $src/* $fs/$iconpath
29 rm -rf $fs/$iconpath/256x256
30 }
32 qtfix="usr/share/icons/hicolor/index.theme"
34 # Pre and post install commands for Tazpkg.
35 post_install()
36 {
37 sed '/Inherits=/s|=.*$|=mist|' -i "$1/$qtfix"
38 }
40 pre_remove()
41 {
42 sed '/Inherits=/s|=.*$|=SliTaz|' -i "$1/$qtfix"
43 }