SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "icon-naming-utils"

# SliTaz package receipt.

PACKAGE="icon-naming-utils"
VERSION="0.8.90"
CATEGORY="x-window"
SHORT_DESC="Perl script used for desktop icon compatibility"
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://en.wikipedia.org/wiki/Tango_Desktop_Project"
WGET_URL="https://tango.freedesktop.org/releases/$TARBALL"

DEPENDS="perl perl-xml-simple"
BUILD_DEPENDS="perl perl-xml-simple"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed '/icecast-/!d;/tar/!d;/-beta/d;s|.*icecast-||;s|.tar.*||' | sort -Vr | sed q
}

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure \
        --prefix=/usr \
        --libexecdir=/usr/lib/icon-naming-utils \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share
    cp -a $install/usr/lib $fs/usr
    cp -a $install/usr/share/dtds $fs/usr/share
    cp -a $install/usr/share/$PACKAGE $fs/usr/share
    
    chmod +x $fs/usr/lib/$PACKAGE/*
    
    # For one file we are not going to build a -dev pkg
    cp -a $install/usr/share/pkgconfig $fs/usr/lib
}

5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)