wok-6.x annotate paper-icon-theme/receipt @ rev 24623
updated graphviz, graphviz-dev and graphviz-doc again (2.42.2 -> 3.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 07 16:41:52 2022 +0100 (2022-03-07) |
parents | 0db377222b23 |
children |
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 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v.\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
al@19013 | 23 # Rules to configure and make the package. |
al@19013 | 24 compile_rules() |
al@19013 | 25 { |
Hans-G?nter@23274 | 26 meson . _build && |
Hans-G?nter@23274 | 27 ninja -C _build && |
Hans-G?nter@23274 | 28 ninja -C _build install |
al@19109 | 29 |
al@19486 | 30 # remove hdpi icons, and huge sizes |
al@19486 | 31 it="$install/usr/share/icons/Paper/index.theme" |
Hans-G?nter@23274 | 32 for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512 |
Hans-G?nter@23274 | 33 do |
al@19486 | 34 echo "Remove $i" |
al@19486 | 35 rm -r $install/usr/share/icons/Paper/$i |
al@19486 | 36 sed -i "s|$i[^,]*,||g" $it |
al@19486 | 37 sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it |
al@19486 | 38 sed -i "/^\[$i/d" $it |
Hans-G?nter@23274 | 39 done |
al@19486 | 40 sed -i '/HiDPi/,$d' $it |
al@19479 | 41 |
al@19479 | 42 # remove duplicates (keep <name>.png, remove <name>.svg) |
Hans-G?nter@23274 | 43 for svg in $(find $install -name '*.svg') |
Hans-G?nter@23274 | 44 do |
al@19479 | 45 if [ -e "${svg%svg}png" ]; then |
al@19479 | 46 echo "Remove duplicate: ${svg#*Paper/}" |
al@19479 | 47 rm "$svg" |
al@19479 | 48 fi |
Hans-G?nter@23274 | 49 done |
al@19013 | 50 } |
al@19013 | 51 |
al@19013 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19013 | 53 genpkg_rules() |
al@19013 | 54 { |
Hans-G?nter@23274 | 55 cp -a $install/* $fs |
al@19013 | 56 } |