SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "nspr"

# SliTaz package receipt.

PACKAGE="nspr"
VERSION="4.33"
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"

# 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()
{
    cd $src/nspr
    ./configure                \
        --prefix=/usr            \
        --libdir=/usr/lib        \
        --includedir=/usr/include/nspr    \
        --enable-optimize        \
        --disable-debug            \
        --with-mozilla            \
        --with-pthreads            \
        $([ $(uname -m) = x86_64 ] && echo --enable-64bit) \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_files    *.so*
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)