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="http://tango.freedesktop.org/Tango_Icon_Library"
WGET_URL="http://tango.freedesktop.org/releases/$TARBALL"

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

HOST_ARCH="i486 x86_64"

# 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
}

6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)