wok-next view paper-icon-theme/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 0e7893ac206d |
children | d457c4e37c1b |
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 compile_rules() {
18 ./autogen.sh &&
19 sed -i 's|-Rv|-R|' Makefile &&
20 make &&
21 make install || return 1
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 genpkg_rules() {
44 cp -a $install/* $fs
45 DEPENDS="librsvg"
46 }