wok-6.x annotate pcre2/receipt @ rev 25292

updated rubberband (2.0.2 -> 3.0.0)
author Hans-G?nter Theisgen
date Tue Jul 19 10:19:50 2022 +0100 (2022-07-19)
parents 080c1dff8494
children
rev   line source
al@19221 1 # SliTaz package receipt.
al@19221 2
al@19221 3 PACKAGE="pcre2"
Hans-G?nter@25117 4 VERSION="10.40"
al@19221 5 CATEGORY="system-tools"
Hans-G?nter@21668 6 SHORT_DESC="Perl 5 Compatible Regular Expression 2, library."
al@19221 7 MAINTAINER="al.bobylev@gmail.com"
al@19221 8 LICENSE="BSD"
Hans-G?nter@21668 9 WEB_SITE="https://www.pcre.org/"
Hans-G?nter@21668 10
Hans-G?nter@25117 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@25117 12 WGET_URL="https://github.com/PhilipHazel/$PACKAGE/archive/refs/tags/$TARBALL"
Hans-G?nter@25117 13
Hans-G?nter@25117 14 BUILD_DEPENDS="automake libtool"
Hans-G?nter@21668 15
al@19221 16 HOST_ARCH="i486 arm"
al@19221 17
pascal@24396 18 # What is the latest version available today?
pascal@24396 19 current_version()
pascal@24396 20 {
pascal@24396 21 wget -O - https://sourceforge.net/projects/pcre/files/pcre2/ 2>/dev/null | \
pascal@24396 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24396 23 sed '/scope="row/!d;s|.*/pcre2/||;s|/.*||;q'
pascal@24396 24 }
pascal@24396 25
al@19221 26 # Rules to configure and make the package.
al@19221 27 compile_rules()
al@19221 28 {
Hans-G?nter@25117 29 ./autogen.sh &&
Hans-G?nter@21668 30 ./configure \
Hans-G?nter@21668 31 --prefix=/usr \
Hans-G?nter@21668 32 --enable-pcre2-16 \
Hans-G?nter@21668 33 --enable-pcre2-32 \
Hans-G?nter@21668 34 --enable-jit \
al@19221 35 $CONFIGURE_ARGS &&
Hans-G?nter@21668 36 make &&
Hans-G?nter@21668 37 make install
al@19221 38
al@19221 39 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
Hans-G?nter@23282 40 for i in $(find $install/usr/share/man -type l)
Hans-G?nter@23282 41 do
al@19221 42 dest=$(readlink $i)
Hans-G?nter@25117 43 rm $i
Hans-G?nter@25117 44 ln -s $dest.gz $i.gz
Hans-G?nter@23282 45 done
al@19221 46 }
al@19221 47
al@19221 48 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19221 49 genpkg_rules()
al@19221 50 {
Hans-G?nter@25117 51 cook_copy_files *.so*
al@19221 52 }