wok-next annotate paper-icon-theme/receipt @ rev 20715

Up nsd (4.1.21)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun May 27 13:10:46 2018 +0300 (2018-05-27)
parents 250165915708
children d5aab818505e
rev   line source
al@19841 1 # SliTaz package receipt v2.
al@19013 2
al@19013 3 PACKAGE="paper-icon-theme"
al@19880 4 VERSION="1.4.0.31" # released v.1.4.0 + 31 commits since it
al@19880 5 COMMIT="c153195"
al@19126 6 CATEGORY="customization"
al@19013 7 SHORT_DESC="Simple and modern icon theme with material design influences"
al@19013 8 MAINTAINER="al.bobylev@gmail.com"
al@19479 9 LICENSE="CC-BY-SA-4"
al@19013 10 WEB_SITE="https://snwh.org/paper/"
al@19681 11
al@19109 12 TARBALL="$PACKAGE-$COMMIT.tar.gz"
al@19681 13 WGET_URL="$GITHUB/snwh/paper-icon-theme/tarball/${COMMIT:-$VERSION}"
al@19013 14
al@19841 15 BUILD_DEPENDS="automake" # svgcleaner"
al@19013 16
al@20443 17 compile_rules() {
al@19013 18 ./autogen.sh &&
al@19841 19 sed -i 's|-Rv|-R|' Makefile &&
al@19013 20 make && make install
al@19109 21
al@19486 22 # remove hdpi icons, and huge sizes
al@19486 23 it="$install/usr/share/icons/Paper/index.theme"
al@19486 24 for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512; do
al@19486 25 echo "Remove $i"
al@19486 26 rm -r $install/usr/share/icons/Paper/$i
al@19486 27 sed -i "s|$i[^,]*,||g" $it
al@19486 28 sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it
al@19486 29 sed -i "/^\[$i/d" $it
al@19479 30 done
al@19486 31 sed -i '/HiDPi/,$d' $it
al@19479 32
al@19841 33 # # remove duplicates (keep <name>.png, remove <name>.svg)
al@19841 34 # for svg in $(find $install -name '*.svg'); do
al@19841 35 # if [ -e "${svg%svg}png" ]; then
al@19841 36 # echo "Remove duplicate: ${svg#*Paper/}"
al@19841 37 # rm "$svg"
al@19841 38 # fi
al@19841 39 # done
al@19013 40 }
al@19013 41
al@20443 42 genpkg_rules() {
al@19013 43 cp -a $install/* $fs
al@19841 44 DEPENDS="librsvg"
al@19013 45 }