wok view pcre/receipt @ rev 25460

Update sourceforge.net web_sites with https://
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 08:10:35 2022 +0000 (2022-09-28)
parents ee53899c6189
children 29df00e1e19d
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 }