wok view pcre2/receipt @ rev 25603

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 18 11:43:32 2023 +0000 (10 months ago)
parents 774faf8d8c74
children 96982f54e3dc
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 - ${WGET_URL%/arch*}/tags 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/pcre2-*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./autogen.sh &&
29 ./configure \
30 --prefix=/usr \
31 --enable-pcre2-16 \
32 --enable-pcre2-32 \
33 --enable-jit \
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 }