wok-current view pcre/receipt @ rev 25685
Add checkspace / fetchall feature for tazpkg
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Mar 14 20:28:39 2024 +0000 (8 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 DEPENDS="gcc-lib-base"
16 HOST_ARCH="i486 arm"
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/pcre/files/pcre/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --prefix=/usr \
30 --enable-pcre16 \
31 --enable-pcre32 \
32 --enable-jit \
33 --enable-unicode-properties \
34 $CONFIGURE_ARGS &&
35 make &&
36 make install
38 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
39 for i in $(find $install/usr/share/man -type l)
40 do
41 dest=$(readlink $i)
42 rm $i
43 ln -s $dest.gz $i.gz
44 done
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cook_copy_files *.so*
51 }