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

Up cookutils, eudev, firmware, ncurses, paper-gtk-theme, paper-icon-theme, slitaz-configs; remove slitaz-next.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Oct 05 21:53:37 2017 +0300 (2017-10-05)
parents d0308bf5ec4a
children 0e7893ac206d
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@19013 17 # Rules to configure and make the package.
al@19013 18 compile_rules()
al@19013 19 {
al@19013 20 ./autogen.sh &&
al@19841 21 sed -i 's|-Rv|-R|' Makefile &&
al@19013 22 make && make install
al@19109 23
al@19486 24 # remove hdpi icons, and huge sizes
al@19486 25 it="$install/usr/share/icons/Paper/index.theme"
al@19486 26 for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512; do
al@19486 27 echo "Remove $i"
al@19486 28 rm -r $install/usr/share/icons/Paper/$i
al@19486 29 sed -i "s|$i[^,]*,||g" $it
al@19486 30 sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it
al@19486 31 sed -i "/^\[$i/d" $it
al@19479 32 done
al@19486 33 sed -i '/HiDPi/,$d' $it
al@19479 34
al@19841 35 # # remove duplicates (keep <name>.png, remove <name>.svg)
al@19841 36 # for svg in $(find $install -name '*.svg'); do
al@19841 37 # if [ -e "${svg%svg}png" ]; then
al@19841 38 # echo "Remove duplicate: ${svg#*Paper/}"
al@19841 39 # rm "$svg"
al@19841 40 # fi
al@19841 41 # done
al@19013 42 }
al@19013 43
al@19013 44 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19013 45 genpkg_rules()
al@19013 46 {
al@19013 47 cp -a $install/* $fs
al@19841 48 DEPENDS="librsvg"
al@19013 49 }