wok annotate paper-icon-theme/receipt @ rev 25601
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 16 18:06:38 2023 +0000 (10 months ago) |
parents | 5ea0ce1cecc0 |
children | 1e09c4c56491 |
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@25601 | 17 # What is the latest version available today? |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25601 | 21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
al@19013 | 24 # Rules to configure and make the package. |
al@19013 | 25 compile_rules() |
al@19013 | 26 { |
Hans-G?nter@23274 | 27 meson . _build && |
Hans-G?nter@23274 | 28 ninja -C _build && |
Hans-G?nter@23274 | 29 ninja -C _build install |
al@19109 | 30 |
al@19486 | 31 # remove hdpi icons, and huge sizes |
al@19486 | 32 it="$install/usr/share/icons/Paper/index.theme" |
Hans-G?nter@23274 | 33 for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512 |
Hans-G?nter@23274 | 34 do |
al@19486 | 35 echo "Remove $i" |
al@19486 | 36 rm -r $install/usr/share/icons/Paper/$i |
al@19486 | 37 sed -i "s|$i[^,]*,||g" $it |
al@19486 | 38 sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it |
al@19486 | 39 sed -i "/^\[$i/d" $it |
Hans-G?nter@23274 | 40 done |
al@19486 | 41 sed -i '/HiDPi/,$d' $it |
al@19479 | 42 |
al@19479 | 43 # remove duplicates (keep <name>.png, remove <name>.svg) |
Hans-G?nter@23274 | 44 for svg in $(find $install -name '*.svg') |
Hans-G?nter@23274 | 45 do |
al@19479 | 46 if [ -e "${svg%svg}png" ]; then |
al@19479 | 47 echo "Remove duplicate: ${svg#*Paper/}" |
al@19479 | 48 rm "$svg" |
al@19479 | 49 fi |
Hans-G?nter@23274 | 50 done |
al@19013 | 51 } |
al@19013 | 52 |
al@19013 | 53 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19013 | 54 genpkg_rules() |
al@19013 | 55 { |
Hans-G?nter@23274 | 56 cp -a $install/* $fs |
al@19013 | 57 } |