SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ht"

# SliTaz package receipt.

PACKAGE="ht"
VERSION="2.1.0"
CATEGORY="development"
SHORT_DESC="File viewer/editor/analyser for text/binary/executable files."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://github.com/sebastianbiallas/ht"
WGET_URL="$SF_MIRROR/hte/$TARBALL"
TAGS="viewer text-editor analysis"

DEPENDS="gcc-lib-base lzo ncurses xorg-libX11 xorg-libXau xorg-libXdmcp"
BUILD_DEPENDS="lzo-dev ncurses-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
    chmod +x install-sh
    ./configure --prefix=/usr --infodir=/usr/share/info \
        --mandir=/usr/share/man \
    $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/usr $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)