wok-next view pcre2/receipt @ rev 20459

Combine receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 13:45:43 2018 +0200 (2018-03-02)
parents aef69ec23a2f
children d43bf7aae921
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pcre2"
4 VERSION="10.23"
5 CATEGORY="system-tools"
6 SHORT_DESC="Perl 5 Compatible Regular Expression 2"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="BSD"
9 WEB_SITE="http://www.pcre.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$TARBALL"
14 BUILD_DEPENDS="zlib-dev bzip2-dev readline-dev valgrind-dev"
15 SPLIT="pcre2-apps pcre2-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # http://www.linuxfromscratch.org/blfs/view/stable/general/pcre2.html
21 ./configure \
22 --docdir=/usr/share/doc/pcre2-$VERSION \
23 --enable-unicode \
24 --enable-pcre2-16 \
25 --enable-pcre2-32 \
26 --enable-pcre2grep-libz \
27 --enable-pcre2grep-libbz2 \
28 --enable-pcre2test-libreadline \
29 --disable-static \
30 --enable-jit \
31 --enable-valgrind \
32 $CONFIGURE_ARGS &&
33 make && make install
35 # find $install/usr/share/man -type f -exec gzip -9 \{\} \;
36 # for i in $(find $install/usr/share/man -type l); do
37 # dest=$(readlink $i)
38 # rm $i; ln -s $dest.gz $i.gz
39 # done
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 case $PACKAGE in
46 pcre2)
47 copy *.so*
48 CAT="system-tools|library"
49 ;;
50 *-apps)
51 copy @std
52 remove_already_packed
53 DEPENDS="pcre2 bzlib ncurses readline zlib"
54 CAT="development|applications"
55 ;;
56 *-dev)
57 copy @dev
58 ;;
59 esac
60 }