SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pcmanfm-legacy"

# SliTaz package receipt.

PACKAGE="pcmanfm-legacy"
VERSION="0.5.2"
SOURCE="pcmanfm"
CATEGORY="system-tools"
SHORT_DESC="Light and easy to use file manager."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="https://sourceforge.net/projects/pcmanfm/"
WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
TAGS="file-manager"

DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \
zlib fontconfig freetype gtk+ atk cairo pango pixman libpng gamin \
startup-notification dbus dbus-glib hal xorg-libICE xorg-libSM xorg-libX11 \
xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \
xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender \
hicolor-icon-theme shared-mime-info"
BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \
dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev \
xcb-util"

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

# Rules to configure and make the package.
compile_rules()
{
    # Binutils 2.22 break many packages build without LDFLAGS set correctly.
    export LDFLAGS="$LDFLAGS -lxcb-util -Wl,--copy-dt-needed-entries -lXt"

    cd $src
    for i in  $stuff/*.patch
    do
        if [ -f done.$(basename $i) ]; then
            continue
        else
            patch -p0 < $i && touch done.$(basename $i) || return 1
        fi
    done

    cp $stuff/fr.po $src/po

    ./configure \
        --enable-hal \
        $CONFIGURE_ARGS &&
    make && make -j 1 install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/applications $fs/etc/xdg

    cp -a $install/usr/bin $fs/usr
    #cp -a $install/usr/share/mime $fs/usr/share
    cp -a $install/usr/share/pcmanfm $fs/usr/share
    rm -rf $fs/usr/share/pcmanfm/icons

    # XDG autostart desktop file (lxsession will use it automaticaly)
    cp -a $stuff/autostart $fs/etc/xdg
}

post_install()
{
    # update mime-cache
    echo
    echo "Updating mime-types database"
    chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)