wok-6.x view pcre/receipt @ rev 25512

memtest: 386/1M support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 14 07:20:48 2023 +0000 (21 months ago)
parents ee53899c6189
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 HOST_ARCH="i486 arm"
16 current_version()
17 {
18 wget -O - https://sourceforge.net/projects/pcre/files/pcre/ 2>/dev/null | \
19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
20 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --prefix=/usr \
28 --enable-pcre16 \
29 --enable-pcre32 \
30 --enable-jit \
31 --enable-unicode-properties \
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
41 ln -s $dest.gz $i.gz
42 done
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 cook_copy_files *.so*
49 }