SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "lesstif"

# SliTaz package receipt.

PACKAGE="lesstif"
VERSION="0.95.2"
CATEGORY="x-window"
SHORT_DESC="An LGPL clone of Motif, which is a set of GUI widgets."
MAINTAINER="rcx@zoominternet.net"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://sourceforge.net/projects/lesstif/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
#HOST_ARCH="arm i486"

DEPENDS="glibc-base xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \
xorg-libXdmcp xorg-libXext xorg-libXt util-linux-uuid freetype xorg-libXp"
BUILD_DEPENDS="xorg-xextproto util-linux-uuid-dev automake"

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

# Rules to configure and make the package.
compile_rules()
{
    ./configure \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        --includedir=/usr/include \
        $CONFIGURE_ARGS  &&
    make  &&
    make -j 1 DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/lib/LessTif $fs/usr/lib
    cp -a $install/usr/lib/X11 $fs/usr/lib
    cp -a $install/usr/bin $fs/usr
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)