wok-current view paper-icon-theme/receipt @ rev 25713
Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Jun 14 11:35:21 2024 +0000 (2 months ago) |
parents | 0db377222b23 |
children |
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 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v.\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 meson . _build &&
27 ninja -C _build &&
28 ninja -C _build install
30 # remove hdpi icons, and huge sizes
31 it="$install/usr/share/icons/Paper/index.theme"
32 for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512
33 do
34 echo "Remove $i"
35 rm -r $install/usr/share/icons/Paper/$i
36 sed -i "s|$i[^,]*,||g" $it
37 sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it
38 sed -i "/^\[$i/d" $it
39 done
40 sed -i '/HiDPi/,$d' $it
42 # remove duplicates (keep <name>.png, remove <name>.svg)
43 for svg in $(find $install -name '*.svg')
44 do
45 if [ -e "${svg%svg}png" ]; then
46 echo "Remove duplicate: ${svg#*Paper/}"
47 rm "$svg"
48 fi
49 done
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 cp -a $install/* $fs
56 }