wok view paper-icon-theme/receipt @ rev 25091

updated paramiko (2.7.1 -> 2.11.0)
author Hans-G?nter Theisgen
date Sat Jun 18 09:52:25 2022 +0100 (2022-06-18)
parents 0db377222b23
children 0262035dc1e7
line source
1 # SliTaz package receipt.
3 PACKAGE="paper-icon-theme"
4 VERSION="1.5.0"
5 CATEGORY="customization"
6 SHORT_DESC="Simple and modern icon theme with material design influences."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="CC-BY-SA-4"
9 WEB_SITE="https://snwh.org/paper/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/snwh/$PACKAGE/archive/v.$VERSION/$TARBALL"
14 DEPENDS="librsvg"
15 BUILD_DEPENDS="meson ninja svgcleaner"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v.\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 meson . _build &&
27 ninja -C _build &&
28 ninja -C _build install
30 # remove hdpi icons, and huge sizes
31 it="$install/usr/share/icons/Paper/index.theme"
32 for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512
33 do
34 echo "Remove $i"
35 rm -r $install/usr/share/icons/Paper/$i
36 sed -i "s|$i[^,]*,||g" $it
37 sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it
38 sed -i "/^\[$i/d" $it
39 done
40 sed -i '/HiDPi/,$d' $it
42 # remove duplicates (keep <name>.png, remove <name>.svg)
43 for svg in $(find $install -name '*.svg')
44 do
45 if [ -e "${svg%svg}png" ]; then
46 echo "Remove duplicate: ${svg#*Paper/}"
47 rm "$svg"
48 fi
49 done
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 cp -a $install/* $fs
56 }