wok view zlib/receipt @ rev 25770
dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 06 11:29:23 2024 +0000 (2 months ago) |
parents | a3503ff52a2e |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="zlib"
4 VERSION="1.3.1"
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="https://github.com/madler/zlib/releases/download/v$VERSION/$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 }