SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "idesk"

# SliTaz package receipt.

PACKAGE="idesk"
VERSION="0.7.5"
CATEGORY="x-window"
SHORT_DESC="IDesk gives users icons on their desktop."
MAINTAINER="pankso@slitaz.org"
LICENSE="BSD"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://idesk.sourceforge.net/html/index.html"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="imlib2 xorg-libXft"
BUILD_DEPENDS="imlib2-dev xorg-libXft-dev automake"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/idesk/files/idesk/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/idesk-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    patch -p 0 < $stuff/configure.in.patch || exit 1
    patch -p 0 < $stuff/DesktopConfig.patch || exit 1
    autoconf
    ./configure \
        --enable-xft \
        $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/bin $fs/usr
    cp -a $install/usr/share/idesk $fs/usr/share
    rm -f \
        $fs/usr/share/idesk/*.xpm \
        $fs/usr/share/idesk/*.lnk \
        $fs/usr/share/idesk/README
    # Custom default.lnk with Home icon
    cp -f $stuff/default.lnk $fs/usr/share/idesk
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)