wok view pcre2/receipt @ rev 24484
updated dislocker (0.7.1 -> 0.7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 18 15:45:33 2022 +0100 (2022-02-18) |
parents | 38896e180d6c |
children | 774faf8d8c74 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pcre2"
4 VERSION="10.34"
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.bz2"
12 WGET_URL="$SF_MIRROR/pcre/$TARBALL"
14 HOST_ARCH="i486 arm"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/pcre/files/pcre2/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/pcre2/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 --enable-pcre2-16 \
30 --enable-pcre2-32 \
31 --enable-jit \
32 $CONFIGURE_ARGS &&
33 make &&
34 make install
36 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
37 for i in $(find $install/usr/share/man -type l)
38 do
39 dest=$(readlink $i)
40 rm $i; ln -s $dest.gz $i.gz
41 done
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 }