wok-6.x view paper-icon-theme/receipt @ rev 20385

Add amiwm
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 23 10:59:44 2018 +0200 (2018-06-23)
parents cf98dd06cfca
children 0db377222b23
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
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 cp -a $install/* $fs
47 }