SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "apr"

# SliTaz package receipt.

PACKAGE="apr"
VERSION="1.7.2"
CATEGORY="misc"
SHORT_DESC="Apache Portable Runtime Library."
MAINTAINER="lehswe@gmail.com"
LICENSE="Apache"
WEB_SITE="https://apr.apache.org"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="https://archive.apache.org/dist/$PACKAGE/$TARBALL"

DEPENDS="util-linux-uuid"
BUILD_DEPENDS="util-linux-uuid-dev"

CROSS="error: cannot check for file existence when cross compiling"

# 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;/asc/d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure                        \
        ap_cv_atomic_builtins=no            \
        --prefix=/usr                    \
        --with-installbuilddir=/usr/share/apr-1/build    \
        --enable-nonportable-atomics            \
        --with-devrandom                \
        --build=$HOST_SYSTEM                \
        --host=$HOST_SYSTEM 2>&1 | grep -v '/libtool:' &&
    make &&
    make 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/*.exp    $fs/usr/lib
}
6047 packages and 206162 files in current database (Tue Jun 18 11:34:18 2024)