SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "paper-icon-theme"

# SliTaz package receipt.

PACKAGE="paper-icon-theme"
VERSION="1.5.0"
CATEGORY="customization"
SHORT_DESC="Simple and modern icon theme with material design influences."
MAINTAINER="al.bobylev@gmail.com"
LICENSE="CC-BY-SA-4"
WEB_SITE="https://snwh.org/paper/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/snwh/$PACKAGE/archive/v.$VERSION/$TARBALL"

DEPENDS="librsvg"
BUILD_DEPENDS="meson ninja svgcleaner"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v.\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    meson .    _build &&
    ninja -C _build &&
    ninja -C _build install

    # remove hdpi icons, and huge sizes
    it="$install/usr/share/icons/Paper/index.theme"
    for i in 8x8@2x 16x16@2x 24x24@2x 32x32@2x 48x48@2x 512x512@2x 512x512
      do
        echo "Remove $i"
        rm -r $install/usr/share/icons/Paper/$i
        sed -i "s|$i[^,]*,||g" $it
        sed -i "/^\[$i/,/^\[/{/^\[/b;d}" $it
        sed -i "/^\[$i/d" $it
      done
    sed -i '/HiDPi/,$d' $it

    # remove duplicates (keep <name>.png, remove <name>.svg)
    for svg in $(find $install -name '*.svg')
      do
        if [ -e "${svg%svg}png" ]; then
            echo "Remove duplicate: ${svg#*Paper/}"
            rm "$svg"
        fi
      done
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/*    $fs
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)