wok view paper-icon-theme/receipt @ rev 19518
Up get-palemoon (27.0.0)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Wed Nov 23 11:04:21 2016 +0100 (2016-11-23) |
parents | 3498b49b1fc9 |
children | 4b55a51aefa5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="paper-icon-theme"
4 VERSION="1.3.4"
5 COMMIT="712acc0"
6 CATEGORY="customization"
7 SHORT_DESC="Simple and modern icon theme with material design influences"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="CC-BY-SA-4"
10 WEB_SITE="https://snwh.org/paper/"
11 TARBALL="$PACKAGE-$COMMIT.tar.gz"
12 WGET_URL="https://github.com/snwh/paper-icon-theme/archive/$COMMIT.tar.gz"
14 DEPENDS="librsvg"
15 BUILD_DEPENDS="autoconf automake svgcleaner"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./autogen.sh &&
21 make && make install
23 # remove hdpi icons, and huge sizes
24 it="$install/usr/share/icons/Paper/index.theme"
25 for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512; do
26 echo "Remove $i"
27 rm -r $install/usr/share/icons/Paper/$i
28 sed -i "s|$i[^,]*,||g" $it
29 sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it
30 sed -i "/^\[$i/d" $it
31 done
32 sed -i '/HiDPi/,$d' $it
34 # remove duplicates (keep <name>.png, remove <name>.svg)
35 for svg in $(find $install -name '*.svg'); do
36 if [ -e "${svg%svg}png" ]; then
37 echo "Remove duplicate: ${svg#*Paper/}"
38 rm "$svg"
39 fi
40 done
42 # optimize all icons
43 cook_compress_svg
44 cook_compress_png
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cp -a $install/* $fs
51 }