wok-next view paper-icon-theme/receipt @ rev 19841

Up adwaita-icon-theme, at-spi2-atk, at-spi2-core, elementary-icon-theme, gtk+, gtk+3, hydroxygen-iconset, libepoxy, paper-icon-theme, slitaz-icons-elementary, slitaz-icons-hydroxygen, slitaz-icons-paper. Add faience-icon-theme.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Aug 17 16:45:06 2017 +0300 (2017-08-17)
parents 27e7c76d2c94
children 250165915708
line source
1 # SliTaz package receipt v2.
3 PACKAGE="paper-icon-theme"
4 VERSION="1.4.0.28" # released v.1.4.0 + 28 commits since it
5 COMMIT="0411510"
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/"
12 TARBALL="$PACKAGE-$COMMIT.tar.gz"
13 WGET_URL="$GITHUB/snwh/paper-icon-theme/tarball/${COMMIT:-$VERSION}"
15 BUILD_DEPENDS="automake" # svgcleaner"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./autogen.sh &&
21 sed -i 's|-Rv|-R|' Makefile &&
22 make && make 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; do
27 echo "Remove $i"
28 rm -r $install/usr/share/icons/Paper/$i
29 sed -i "s|$i[^,]*,||g" $it
30 sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it
31 sed -i "/^\[$i/d" $it
32 done
33 sed -i '/HiDPi/,$d' $it
35 cp $install/usr/share/icons/Paper/scalable/actions/action-unavailable-symbolic.svg \
36 $install/usr/share/icons/Paper/scalable/actions/action\ unavailable\ symbolic.svg
38 # # remove duplicates (keep <name>.png, remove <name>.svg)
39 # for svg in $(find $install -name '*.svg'); do
40 # if [ -e "${svg%svg}png" ]; then
41 # echo "Remove duplicate: ${svg#*Paper/}"
42 # rm "$svg"
43 # fi
44 # done
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cp -a $install/* $fs
51 DEPENDS="librsvg"
52 }