SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "pcre"

# SliTaz package receipt.

PACKAGE="pcre"
VERSION="8.45"
CATEGORY="system-tools"
SHORT_DESC="Perl 5 Compatible Regular Expression, library."
MAINTAINER="pankso@slitaz.org"
LICENSE="BSD"
WEB_SITE="https://www.pcre.org/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="gcc-lib-base"

HOST_ARCH="i486 arm"

current_version()
{
    wget -O - https://sourceforge.net/projects/pcre/files/pcre/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure                \
        --prefix=/usr            \
        --enable-pcre16            \
        --enable-pcre32            \
        --enable-jit            \
        --enable-unicode-properties    \
        $CONFIGURE_ARGS &&
    make &&
    make install

    find $install/usr/share/man -type f -exec gzip -9 \{\} \;
    for i in $(find $install/usr/share/man -type l)
      do
        dest=$(readlink $i)
        rm $i
        ln -s $dest.gz $i.gz
      done
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_files    *.so*
}
6047 packages and 207212 files in current database (Tue Jun 25 15:15:29 2024)