SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "fslint"

# SliTaz package receipt.

PACKAGE="fslint"
VERSION="2.46"
CATEGORY="base-system"
SHORT_DESC="File System 'lint' discovery and cleaning utility."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.pixelbeat.org/fslint/"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$WEB_SITE/$TARBALL"

SUGGESTED="fslint-lang"
DEPENDS="bash coreutils-file-sort cpio findutils gtk+ libglade pygtk python"
BUILD_DEPENDS="gettext"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/pixelb/fslint/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i    -e s"|^liblocation=.*|liblocation=\'/usr/share'|"    \
        -e s'|/po/locale|/locale|'                \
        fslint-gui &&
    # create localised messages
    make    install                \
        -C po                \
        DESTDIR=$DESTDIR        \
        LOCALEDIR=/usr/share/locale
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $install/usr/share
    cp -a $src/doc            $install/usr/share/
    cp -a $src/man            $install/usr/share/

    mkdir -p $fs/usr/bin
    mkdir -p $fs/usr/share/applications
    mkdir -p $fs/usr/share/fslint
    mkdir -p $fs/usr/share/pixmaps

    cp -a $src/fslint.desktop    $fs/usr/share/applications
    cp -a $src/fslint-gui        $fs/usr/bin
    cp -a $src/fslint.glade        $fs/usr/share
    cp -a $src/fslint/fstool    $fs/usr/share/fslint/
    cp -a $src/fslint/supprt    $fs/usr/share/fslint/
    cp -a $src/fslint/find*        $fs/usr/share/fslint/
    cp -a $src/fslint/fslint    $fs/usr/share/fslint/
    cp -a $src/fslint/zipdir    $fs/usr/share/fslint/
    cp -a $src/fslint_icon.png    $fs/usr/share/pixmaps
    ln -s ./pixmaps/fslint_icon.png    $fs/usr/share/fslint_icon.png
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)