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

updated pngquant (2.12.3 -> 2.12.5)
author Hans-G?nter Theisgen
date Thu Apr 02 09:19:42 2020 +0100 (2020-04-02)
parents 4b55a51aefa5
children 5ea0ce1cecc0
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 # Rules to configure and make the package.
18 compile_rules()
19 {
20 meson . _build &&
21 ninja -C _build &&
22 ninja -C _build install
24 # remove hdpi icons, and huge sizes
25 it="$install/usr/share/icons/Paper/index.theme"
26 for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512
27 do
28 echo "Remove $i"
29 rm -r $install/usr/share/icons/Paper/$i
30 sed -i "s|$i[^,]*,||g" $it
31 sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it
32 sed -i "/^\[$i/d" $it
33 done
34 sed -i '/HiDPi/,$d' $it
36 # remove duplicates (keep <name>.png, remove <name>.svg)
37 for svg in $(find $install -name '*.svg')
38 do
39 if [ -e "${svg%svg}png" ]; then
40 echo "Remove duplicate: ${svg#*Paper/}"
41 rm "$svg"
42 fi
43 done
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cp -a $install/* $fs
50 }