SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "xfce4-session"

# SliTaz package receipt.

PACKAGE="xfce4-session"
VERSION="4.12.0"
CATEGORY="x-window"
SHORT_DESC="Xfce session manager"
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://www.xfce.org/"
WGET_URL="https://archive.xfce.org/src/xfce/$PACKAGE/${VERSION%.*}/$TARBALL"
SUGGESTED="perl-xml-parser"

DEPENDS="libxfce4util libxfce4ui libwnck dbus-glib libglade xorg-iceauth"
BUILD_DEPENDS="libxfce4util-dev libxfce4ui-dev xfconf-dev libglade-dev dbus-dev \
dbus-glib-dev xorg-iceauth libwnck-dev pkg-config intltool util-linux-uuid-dev \
xcb-util-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure --prefix=/usr \
        --sysconfdir=/etc \
        --enable-panel-plugin \
        --disable-gnome \
        --disable-debug \
        --libexecdir=/usr/lib/$PACKAGE \
        --mandir=/usr/share/man $CONFIGURE_ARGS  2>&1 | grep -v libtoolT &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib \
        $fs/usr/share/locale \
        $fs/sbin
            
    cp -a $install/etc $fs/    
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/lib/xfce4 $fs/usr/lib
    cp -a $install/usr/share/applications $fs/usr/share
    cp -a $install/usr/share/icons $fs/usr/share
    cp -a $install/usr/share/themes $fs/usr/share
    #cp -a $install/usr/share/xfce4 $fs/usr/share
    
    # xfce4-session-logout workarround
    cp stuff/shutdown $fs/sbin

    # strip all files
    #strip -s $fs/usr/lib/$PACKAGE/xf*
    
    # remove autostartfile
    rm -f $fs/etc/xdg/autostart/*
    
    # Remove unecessary files
    find $fs/ -name "*.*a" -exec rm -f {} \;

    # Remove SVG icons
    rm -rf $fs/usr/share/icons/hicolor/scalable
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)