wok-current annotate paper-icon-theme/receipt @ rev 23476

updated python-cups (1.9.68 -> 1.9.74)
author Hans-G?nter Theisgen
date Sun Apr 05 15:24:22 2020 +0100 (2020-04-05)
parents 4b55a51aefa5
children 5ea0ce1cecc0
rev   line source
al@19013 1 # SliTaz package receipt.
al@19013 2
al@19013 3 PACKAGE="paper-icon-theme"
Hans-G?nter@23274 4 VERSION="1.5.0"
al@19126 5 CATEGORY="customization"
Hans-G?nter@23274 6 SHORT_DESC="Simple and modern icon theme with material design influences."
al@19013 7 MAINTAINER="al.bobylev@gmail.com"
al@19479 8 LICENSE="CC-BY-SA-4"
al@19013 9 WEB_SITE="https://snwh.org/paper/"
Hans-G?nter@23274 10
Hans-G?nter@23274 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@23274 12 WGET_URL="https://github.com/snwh/$PACKAGE/archive/v.$VERSION/$TARBALL"
al@19013 13
al@19479 14 DEPENDS="librsvg"
Hans-G?nter@23274 15 BUILD_DEPENDS="meson ninja svgcleaner"
al@19013 16
al@19013 17 # Rules to configure and make the package.
al@19013 18 compile_rules()
al@19013 19 {
Hans-G?nter@23274 20 meson . _build &&
Hans-G?nter@23274 21 ninja -C _build &&
Hans-G?nter@23274 22 ninja -C _build install
al@19109 23
al@19486 24 # remove hdpi icons, and huge sizes
al@19486 25 it="$install/usr/share/icons/Paper/index.theme"
Hans-G?nter@23274 26 for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512
Hans-G?nter@23274 27 do
al@19486 28 echo "Remove $i"
al@19486 29 rm -r $install/usr/share/icons/Paper/$i
al@19486 30 sed -i "s|$i[^,]*,||g" $it
al@19486 31 sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it
al@19486 32 sed -i "/^\[$i/d" $it
Hans-G?nter@23274 33 done
al@19486 34 sed -i '/HiDPi/,$d' $it
al@19479 35
al@19479 36 # remove duplicates (keep <name>.png, remove <name>.svg)
Hans-G?nter@23274 37 for svg in $(find $install -name '*.svg')
Hans-G?nter@23274 38 do
al@19479 39 if [ -e "${svg%svg}png" ]; then
al@19479 40 echo "Remove duplicate: ${svg#*Paper/}"
al@19479 41 rm "$svg"
al@19479 42 fi
Hans-G?nter@23274 43 done
al@19013 44 }
al@19013 45
al@19013 46 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19013 47 genpkg_rules()
al@19013 48 {
Hans-G?nter@23274 49 cp -a $install/* $fs
al@19013 50 }