wok view zlib/receipt @ rev 25487

Up exiftool (12.50), foomatic-db (4.0-20221111), lzsa (1.4.0), zlib (1.2.13)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 15 16:20:54 2022 +0000 (17 months ago)
parents 71ea22396e62
children a3503ff52a2e
line source
1 # SliTaz package receipt.
3 PACKAGE="zlib"
4 VERSION="1.2.13"
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/FONT SIZE/!d;s|.*zlib ||;s|<.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 case "$ARCH" in
29 i486)
30 # work around gcc bug; see https://bugs.archlinux.org/task/20647
31 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" ;;
32 esac
33 ./configure --prefix=/usr --shared &&
34 make && make install
35 }
37 # Important cross compiled package so run readelf.
38 testsuite()
39 {
40 cd $install
41 readelf -h usr/lib/*.so.$VERSION
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 cp -a $install/usr/lib/libz.so* $fs/usr/lib
49 }