wok-6.x view pcre2/receipt @ rev 25301
updated sg3_utils, sg3_utils-dev and libsgutils2 (1.45 -> 1.47)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 20 08:07:57 2022 +0100 (2022-07-20) |
parents | 080c1dff8494 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="pcre2"
4 VERSION="10.40"
5 CATEGORY="system-tools"
6 SHORT_DESC="Perl 5 Compatible Regular Expression 2, library."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="https://www.pcre.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/PhilipHazel/$PACKAGE/archive/refs/tags/$TARBALL"
14 BUILD_DEPENDS="automake libtool"
16 HOST_ARCH="i486 arm"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/pcre/files/pcre2/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/pcre2/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./autogen.sh &&
30 ./configure \
31 --prefix=/usr \
32 --enable-pcre2-16 \
33 --enable-pcre2-32 \
34 --enable-jit \
35 $CONFIGURE_ARGS &&
36 make &&
37 make install
39 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
40 for i in $(find $install/usr/share/man -type l)
41 do
42 dest=$(readlink $i)
43 rm $i
44 ln -s $dest.gz $i.gz
45 done
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 cook_copy_files *.so*
52 }