wok-6.x annotate pcre/receipt @ rev 24757
pkg-config: cheat configure
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 18 06:53:58 2022 +0100 (2022-03-18) |
parents | ab547e2cda64 |
children | eb6fc44c0c5f |
rev | line source |
---|---|
pankso@6 | 1 # SliTaz package receipt. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="pcre" |
Hans-G?nter@23281 | 4 VERSION="8.44" |
pankso@202 | 5 CATEGORY="system-tools" |
Hans-G?nter@21667 | 6 SHORT_DESC="Perl 5 Compatible Regular Expression, library." |
pankso@6 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15375 | 8 LICENSE="BSD" |
Hans-G?nter@21667 | 9 WEB_SITE="https://www.pcre.org/" |
Hans-G?nter@21667 | 10 |
slaxemulator@7607 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@21667 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
Hans-G?nter@21667 | 13 |
pankso@12771 | 14 HOST_ARCH="i486 arm" |
pankso@6 | 15 |
pascal@24071 | 16 current_version() |
pascal@24071 | 17 { |
pascal@24071 | 18 wget -O - https://sourceforge.net/projects/pcre/files/pcre/ 2>/dev/null | \ |
pascal@24071 | 19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24071 | 20 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" |
pascal@24071 | 21 } |
pascal@24071 | 22 |
pankso@6 | 23 # Rules to configure and make the package. |
pankso@6 | 24 compile_rules() |
pankso@6 | 25 { |
Hans-G?nter@21667 | 26 ./configure \ |
Hans-G?nter@21667 | 27 --prefix=/usr \ |
Hans-G?nter@21667 | 28 --enable-pcre16 \ |
Hans-G?nter@21667 | 29 --enable-pcre32 \ |
Hans-G?nter@21667 | 30 --enable-jit \ |
Hans-G?nter@21667 | 31 --enable-unicode-properties \ |
pankso@12470 | 32 $CONFIGURE_ARGS && |
Hans-G?nter@21667 | 33 make && |
Hans-G?nter@21667 | 34 make install |
al@19221 | 35 |
al@19221 | 36 find $install/usr/share/man -type f -exec gzip -9 \{\} \; |
Hans-G?nter@23281 | 37 for i in $(find $install/usr/share/man -type l) |
Hans-G?nter@23281 | 38 do |
al@19221 | 39 dest=$(readlink $i) |
al@19221 | 40 rm $i; ln -s $dest.gz $i.gz |
Hans-G?nter@23281 | 41 done |
pankso@6 | 42 } |
pankso@6 | 43 |
pankso@6 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@6 | 45 genpkg_rules() |
pankso@6 | 46 { |
pankso@6 | 47 mkdir -p $fs/usr/lib |
Hans-G?nter@23281 | 48 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@6 | 49 } |