wok-next view paper-icon-theme/receipt @ rev 20002
Up qps, avidemux, tea
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Fri Oct 20 23:49:15 2017 +0200 (2017-10-20) |
parents | d0308bf5ec4a |
children | 0e7893ac206d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="paper-icon-theme"
4 VERSION="1.4.0.31" # released v.1.4.0 + 31 commits since it
5 COMMIT="c153195"
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 # # remove duplicates (keep <name>.png, remove <name>.svg)
36 # for svg in $(find $install -name '*.svg'); do
37 # if [ -e "${svg%svg}png" ]; then
38 # echo "Remove duplicate: ${svg#*Paper/}"
39 # rm "$svg"
40 # fi
41 # done
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 cp -a $install/* $fs
48 DEPENDS="librsvg"
49 }