wok-current view pcre/receipt @ rev 25692

Up gnutls CVE-2024-28834, CVE-2024-28835, Up python3 CVE-2023-52425, CVE-2024-0450, CVE-2023-6597
author Stanislas Leduc <shann@slitaz.org>
date Fri Mar 22 16:28:42 2024 +0000 (3 months ago)
parents eb6fc44c0c5f
children
line source
1 # SliTaz package receipt.
3 PACKAGE="pcre"
4 VERSION="8.45"
5 CATEGORY="system-tools"
6 SHORT_DESC="Perl 5 Compatible Regular Expression, library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.pcre.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="gcc-lib-base"
16 HOST_ARCH="i486 arm"
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/pcre/files/pcre/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --prefix=/usr \
30 --enable-pcre16 \
31 --enable-pcre32 \
32 --enable-jit \
33 --enable-unicode-properties \
34 $CONFIGURE_ARGS &&
35 make &&
36 make install
38 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
39 for i in $(find $install/usr/share/man -type l)
40 do
41 dest=$(readlink $i)
42 rm $i
43 ln -s $dest.gz $i.gz
44 done
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cook_copy_files *.so*
51 }