SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "clex"

# SliTaz package receipt.

PACKAGE="clex"
VERSION="4.7"
CATEGORY="system-tools"
TAGS="file-manager"
SHORT_DESC="Text mode file manager."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="http://www.clex.sk/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/xitop/clex/releases/download/v$VERSION/$TARBALL"

DEPENDS="ncursesw"
BUILD_DEPENDS="ncursesw-dev"

HOST_ARCH="i486 arm"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/download*} 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    case "$ARCH" in
        arm)
            sed -i s'|#include <limits.h>|#define SSIZE_MAX 0x7fffffff|' \
                src/util.c ;;
    esac

    ./configure $CONFIGURE_ARGS &&
    make &&
    make install
}

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

    cp -a $stuff/skel    $fs/etc
    cook_copy_folders    bin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)