wok annotate pcre2/receipt @ rev 25603

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 18 11:43:32 2023 +0000 (10 months ago)
parents 774faf8d8c74
children 96982f54e3dc
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@25603 21 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@25603 22 sed '/tag\//!d;s|.*tag/pcre2-*||;s|".*||;q'
pascal@24396 23 }
pascal@24396 24
al@19221 25 # Rules to configure and make the package.
al@19221 26 compile_rules()
al@19221 27 {
Hans-G?nter@25117 28 ./autogen.sh &&
Hans-G?nter@21668 29 ./configure \
Hans-G?nter@21668 30 --prefix=/usr \
Hans-G?nter@21668 31 --enable-pcre2-16 \
Hans-G?nter@21668 32 --enable-pcre2-32 \
Hans-G?nter@21668 33 --enable-jit \
al@19221 34 $CONFIGURE_ARGS &&
Hans-G?nter@21668 35 make &&
Hans-G?nter@21668 36 make install
al@19221 37
al@19221 38 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
Hans-G?nter@23282 39 for i in $(find $install/usr/share/man -type l)
Hans-G?nter@23282 40 do
al@19221 41 dest=$(readlink $i)
Hans-G?nter@25117 42 rm $i
Hans-G?nter@25117 43 ln -s $dest.gz $i.gz
Hans-G?nter@23282 44 done
al@19221 45 }
al@19221 46
al@19221 47 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19221 48 genpkg_rules()
al@19221 49 {
Hans-G?nter@25117 50 cook_copy_files *.so*
al@19221 51 }