SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "talloc"

# SliTaz package receipt.

PACKAGE="talloc"
VERSION="2.3.3"
CATEGORY="system-tools"
SHORT_DESC="Hierarchical pool based memory allocator with destructors."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="LGPL"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://talloc.samba.org/talloc/doc/html/index.html"
WGET_URL="http://samba.org/ftp/$PACKAGE/$TARBALL"
CROSS="bug: must use --cross-compile and --cross-execute="

DEPENDS="glibc-base"
BUILD_DEPENDS="python3-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure \
        --prefix=/usr \
        --enable-talloc-compat1 \
        --hostcc=$HOST_SYSTEM &&
    make $MAKEFLAGS &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/libtalloc*.so* $fs/usr/lib/
    ln -sf /usr/lib/libtalloc.so.$VERSION $fs/usr/lib/libtalloc.so.2
    ln -sf /usr/lib/libtalloc-compat1-$VERSION.so $fs/usr/lib/libtalloc.so.1
}
6025 packages and 203653 files in current database (Fri May 31 00:00:08 2024)