SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "nspr"

# SliTaz package receipt.

PACKAGE="nspr"
VERSION="4.35"
CATEGORY="utilities"
SHORT_DESC="Netscape Portable Runtime."
MAINTAINER="rocky@slitaz.org"
LICENSE="MPL2"
WEB_SITE="https://www-archive.mozilla.org/projects/nspr/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${VERSION}/src/${TARBALL}"

DEPENDS="glibc-base"
BUILD_DEPENDS="perl"

HOST_ARCH="i486 x86_64"

# What is the latest version available today?
current_version()
{
    wget -O - https://hg.mozilla.org/projects/nspr 2>/dev/null | \
    sed '/_BRANCH/!d;s|.*NSPR_||;s|_BRANCH.*||;s|_|.|g;q'
}

# Rules to configure and make the package.
compile_rules()
{
    case $SLITAZ_ARCH in
        i?86)
            ARCH_ARGS="" ;;
        x86_64)
            ARCH_ARGS="--enable-64bit" ;;
    esac

    cd $src/nspr
    ./configure                \
        --prefix=/usr            \
        --libdir=/usr/lib        \
        --includedir=/usr/include/nspr    \
        --enable-optimize        \
        --disable-debug            \
        --with-mozilla            \
        --with-pthreads            \
        $ARCH_ARGS            \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_files    *.so*
}
6091 packages and 256114 files in current database (Thu Apr 3 00:00:04 2025)