wok view 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 (9 months ago)
parents 5ea0ce1cecc0
children 1e09c4c56491
line source
1 # SliTaz package receipt.
3 PACKAGE="paper-icon-theme"
4 VERSION="1.5.0"
5 CATEGORY="customization"
6 SHORT_DESC="Simple and modern icon theme with material design influences."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="CC-BY-SA-4"
9 WEB_SITE="https://snwh.org/paper/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/snwh/$PACKAGE/archive/v.$VERSION/$TARBALL"
14 DEPENDS="librsvg"
15 BUILD_DEPENDS="meson ninja svgcleaner"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 meson . _build &&
28 ninja -C _build &&
29 ninja -C _build install
31 # remove hdpi icons, and huge sizes
32 it="$install/usr/share/icons/Paper/index.theme"
33 for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512
34 do
35 echo "Remove $i"
36 rm -r $install/usr/share/icons/Paper/$i
37 sed -i "s|$i[^,]*,||g" $it
38 sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it
39 sed -i "/^\[$i/d" $it
40 done
41 sed -i '/HiDPi/,$d' $it
43 # remove duplicates (keep <name>.png, remove <name>.svg)
44 for svg in $(find $install -name '*.svg')
45 do
46 if [ -e "${svg%svg}png" ]; then
47 echo "Remove duplicate: ${svg#*Paper/}"
48 rm "$svg"
49 fi
50 done
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 cp -a $install/* $fs
57 }