wok annotate pcre2/receipt @ rev 24473

updated ddrescue (1.25 -> 1.26)
author Hans-G?nter Theisgen
date Thu Feb 17 15:55:17 2022 +0100 (2022-02-17)
parents 38896e180d6c
children 774faf8d8c74
rev   line source
al@19221 1 # SliTaz package receipt.
al@19221 2
al@19221 3 PACKAGE="pcre2"
Hans-G?nter@23282 4 VERSION="10.34"
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
al@19221 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@21668 12 WGET_URL="$SF_MIRROR/pcre/$TARBALL"
Hans-G?nter@21668 13
al@19221 14 HOST_ARCH="i486 arm"
al@19221 15
pascal@24396 16 # What is the latest version available today?
pascal@24396 17 current_version()
pascal@24396 18 {
pascal@24396 19 wget -O - https://sourceforge.net/projects/pcre/files/pcre2/ 2>/dev/null | \
pascal@24396 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24396 21 sed '/scope="row/!d;s|.*/pcre2/||;s|/.*||;q'
pascal@24396 22 }
pascal@24396 23
al@19221 24 # Rules to configure and make the package.
al@19221 25 compile_rules()
al@19221 26 {
Hans-G?nter@21668 27 ./configure \
Hans-G?nter@21668 28 --prefix=/usr \
Hans-G?nter@21668 29 --enable-pcre2-16 \
Hans-G?nter@21668 30 --enable-pcre2-32 \
Hans-G?nter@21668 31 --enable-jit \
al@19221 32 $CONFIGURE_ARGS &&
Hans-G?nter@21668 33 make &&
Hans-G?nter@21668 34 make install
al@19221 35
al@19221 36 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
Hans-G?nter@23282 37 for i in $(find $install/usr/share/man -type l)
Hans-G?nter@23282 38 do
al@19221 39 dest=$(readlink $i)
al@19221 40 rm $i; ln -s $dest.gz $i.gz
Hans-G?nter@23282 41 done
al@19221 42 }
al@19221 43
al@19221 44 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19221 45 genpkg_rules()
al@19221 46 {
al@19221 47 mkdir -p $fs/usr/lib
Hans-G?nter@23282 48 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@19221 49 }