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

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 18:04:02 2022 +0000 (2022-02-10)
parents ab547e2cda64
children eb6fc44c0c5f
line source
1 # SliTaz package receipt.
3 PACKAGE="pcre"
4 VERSION="8.44"
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; 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 }