wok view zlib/receipt @ rev 24560
updated fossil (2.12.1 -> 2.18)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 25 16:12:40 2022 +0100 (2022-02-25) |
parents | ad1a3aa3acec |
children | 71ea22396e62 |
line source
1 # SliTaz package receipt.
3 PACKAGE="zlib"
4 VERSION="1.2.11"
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 }