wok-next annotate 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
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@21020 20 make &&
al@21020 21 make install || return 1
al@19109 22
al@19486 23 # remove hdpi icons, and huge sizes
al@19486 24 it="$install/usr/share/icons/Paper/index.theme"
al@19486 25 for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512; do
al@19486 26 echo "Remove $i"
al@19486 27 rm -r $install/usr/share/icons/Paper/$i
al@19486 28 sed -i "s|$i[^,]*,||g" $it
al@19486 29 sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it
al@19486 30 sed -i "/^\[$i/d" $it
al@19479 31 done
al@19486 32 sed -i '/HiDPi/,$d' $it
al@19479 33
al@19841 34 # # remove duplicates (keep <name>.png, remove <name>.svg)
al@19841 35 # for svg in $(find $install -name '*.svg'); do
al@19841 36 # if [ -e "${svg%svg}png" ]; then
al@19841 37 # echo "Remove duplicate: ${svg#*Paper/}"
al@19841 38 # rm "$svg"
al@19841 39 # fi
al@19841 40 # done
al@19013 41 }
al@19013 42
al@20443 43 genpkg_rules() {
al@19013 44 cp -a $install/* $fs
al@19841 45 DEPENDS="librsvg"
al@19013 46 }