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

Up cookutils, cups, fontconfig, gtk+, ijs, paper-icon-theme, poppler, qpdf.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 07 17:30:10 2017 +0300 (2017-04-07)
parents 4b55a51aefa5
children d0308bf5ec4a
line source
1 # SliTaz package receipt.
3 PACKAGE="paper-icon-theme"
4 VERSION="1.4.0.11"
5 COMMIT="579e9aa"
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 DEPENDS="librsvg"
16 BUILD_DEPENDS="autoconf automake svgcleaner"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./autogen.sh &&
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 }