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 '/tag\//!d;s|.*tag/v*||;s|".*||;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
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)