wok-next diff paper-icon-theme/receipt @ rev 21648

updated fetchmail (6.3.26 -> 6.4.8)
author Hans-G?nter Theisgen
date Fri Jun 26 17:32:09 2020 +0100 (2020-06-26)
parents d457c4e37c1b
children
line diff
     1.1 --- a/paper-icon-theme/receipt	Fri Nov 09 13:21:03 2018 +0200
     1.2 +++ b/paper-icon-theme/receipt	Fri Jun 26 17:32:09 2020 +0100
     1.3 @@ -1,46 +1,45 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="paper-icon-theme"
     1.7 -VERSION="1.4.0.31"	# released v.1.4.0 + 31 commits since it
     1.8 -COMMIT="c153195"
     1.9 +VERSION="1.5.0"
    1.10  CATEGORY="customization"
    1.11  SHORT_DESC="Simple and modern icon theme with material design influences"
    1.12  MAINTAINER="al.bobylev@gmail.com"
    1.13  LICENSE="CC-BY-SA-4"
    1.14  WEB_SITE="https://snwh.org/paper"
    1.15 +HOST_ARCH="any"
    1.16  
    1.17  TARBALL="$PACKAGE-$COMMIT.tar.gz"
    1.18 -WGET_URL="$GITHUB/snwh/paper-icon-theme/tarball/${COMMIT:-$VERSION}"
    1.19 +WGET_URL="https://github.com/snwh/paper-icon-theme/archive/v.$VERSION.tar.gz"
    1.20 +TARBALL_SHA1="1a91245113971687a12f8fb2bc2e9ceae1e705f8"
    1.21  
    1.22 -BUILD_DEPENDS="automake" # svgcleaner"
    1.23 +BUILD_DEPENDS="meson ninja jdupes"
    1.24 +SPLIT="$PACKAGE-huge $PACKAGE-hidpi $PACKAGE"
    1.25 +
    1.26 +COPY_huge="512x512/"
    1.27 +COPY_hidpi="*@2x/"
    1.28 +
    1.29 +CAT_huge="customization|512x512 px"
    1.30 +CAT_hidpi="customization|for HiDPI screens"
    1.31 +
    1.32 +DEPENDS_huge="$PACKAGE"
    1.33 +DEPENDS_hidpi="$PACKAGE"
    1.34 +DEPENDS_std=" "
    1.35  
    1.36  compile_rules() {
    1.37 -	./autogen.sh &&
    1.38 -	sed -i 's|-Rv|-R|' Makefile &&
    1.39 -	make &&
    1.40 -	make install || return 1
    1.41 +	# Lots of files incorrectly have executable permissions.
    1.42 +	# Remove all such permissions, then restore the few that are correct.
    1.43 +	busybox find $src -type f -perm +111 ! -name '*.py' -exec chmod a-x '{}' \;
    1.44  
    1.45 -	# remove hdpi icons, and huge sizes
    1.46 -	it="$install/usr/share/icons/Paper/index.theme"
    1.47 -	for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512; do
    1.48 -		echo "Remove $i"
    1.49 -		rm -r $install/usr/share/icons/Paper/$i
    1.50 -		sed -i "s|$i[^,]*,||g" $it
    1.51 -		sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it
    1.52 -		sed -i "/^\[$i/d" $it
    1.53 -	done
    1.54 -	sed -i '/HiDPi/,$d' $it
    1.55 +	mkdir build
    1.56 +	cd    build
    1.57  
    1.58 -#	# remove duplicates (keep <name>.png, remove <name>.svg)
    1.59 -#	for svg in $(find $install -name '*.svg'); do
    1.60 -#		if [ -e "${svg%svg}png" ]; then
    1.61 -#			echo "Remove duplicate: ${svg#*Paper/}"
    1.62 -#			rm "$svg"
    1.63 -#		fi
    1.64 -#	done
    1.65 +	meson-wrapper &&
    1.66 +	ninja &&
    1.67 +	ninja install || return 1
    1.68 +
    1.69 +	jdupes -l -R $install/usr/share/icons/
    1.70 +
    1.71 +	cd $src
    1.72 +	cook_pick_docs AUTHORS COPYING LICENSE README.md
    1.73  }
    1.74 -
    1.75 -genpkg_rules() {
    1.76 -	cp -a $install/* $fs
    1.77 -	DEPENDS="librsvg"
    1.78 -}