wok view pcre/receipt @ rev 25632
Up gtklife (5.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 23 14:06:29 2023 +0000 (11 months ago) |
parents | eb6fc44c0c5f |
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/pcre/files/pcre/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 --enable-pcre16 \
30 --enable-pcre32 \
31 --enable-jit \
32 --enable-unicode-properties \
33 $CONFIGURE_ARGS &&
34 make &&
35 make install
37 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
38 for i in $(find $install/usr/share/man -type l)
39 do
40 dest=$(readlink $i)
41 rm $i
42 ln -s $dest.gz $i.gz
43 done
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cook_copy_files *.so*
50 }