wok-6.x view zlib/receipt @ rev 25335

updated libhtp and libhtp-dev (0.5.39 -> 0.5.40)
author Hans-G?nter Theisgen
date Sat Jul 23 17:39:36 2022 +0100 (2022-07-23)
parents 7e911016a644
children ed5f25d05ff6
line source
1 # SliTaz package receipt.
3 PACKAGE="zlib"
4 VERSION="1.2.12"
5 CATEGORY="base-system"
6 SHORT_DESC="Compression library"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="zlib/libpng"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://zlib.net"
11 WGET_URL="$WEB_SITE/$TARBALL"
12 #WGET_URL="$SF_MIRROR/libpng/$TARBALL"
13 HOST_ARCH="i486 arm x86_64"
15 DEPENDS="glibc-base"
16 BUILD_DEPENDS=""
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | \
21 sed '/FONT SIZE/!d;s|.*zlib ||;s|<.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 case "$ARCH" in
28 i486)
29 # work around gcc bug; see https://bugs.archlinux.org/task/20647
30 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" ;;
31 esac
32 ./configure --prefix=/usr --shared &&
33 make && make install
34 }
36 # Important cross compiled package so run readelf.
37 testsuite()
38 {
39 cd $install
40 readelf -h usr/lib/*.so.$VERSION
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib
47 cp -a $install/usr/lib/libz.so* $fs/usr/lib
48 }