wok-current annotate zlib/receipt @ rev 24465
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 17 12:02:46 2022 +0000 (2022-02-17) |
parents | ad1a3aa3acec |
children | 71ea22396e62 |
rev | line source |
---|---|
pankso@8 | 1 # SliTaz package receipt. |
pankso@8 | 2 |
pankso@8 | 3 PACKAGE="zlib" |
pascal@20022 | 4 VERSION="1.2.11" |
pankso@178 | 5 CATEGORY="base-system" |
al@17992 | 6 SHORT_DESC="Compression library" |
pankso@8 | 7 MAINTAINER="pankso@slitaz.org" |
al@14742 | 8 LICENSE="zlib/libpng" |
pascal@14472 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@12769 | 10 WEB_SITE="http://zlib.net" |
devl547@19594 | 11 WGET_URL="$WEB_SITE/$TARBALL" |
devl547@19594 | 12 #WGET_URL="$SF_MIRROR/libpng/$TARBALL" |
pankso@12828 | 13 HOST_ARCH="i486 arm x86_64" |
pankso@8 | 14 |
slaxemulator@10413 | 15 DEPENDS="glibc-base" |
pascal@12137 | 16 BUILD_DEPENDS="" |
slaxemulator@10413 | 17 |
pascal@24069 | 18 current_version() |
pascal@24069 | 19 { |
pascal@24069 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24069 | 21 sed '/FONT SIZE/!d;s|.*zlib ||;s|<.*||;q' |
pascal@24069 | 22 } |
pascal@24069 | 23 |
pankso@8 | 24 # Rules to configure and make the package. |
pankso@8 | 25 compile_rules() |
pankso@8 | 26 { |
pankso@12769 | 27 case "$ARCH" in |
pankso@12769 | 28 i486) |
pankso@12769 | 29 # work around gcc bug; see https://bugs.archlinux.org/task/20647 |
pankso@12769 | 30 export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" ;; |
pankso@12769 | 31 esac |
gokhlayeh@8214 | 32 ./configure --prefix=/usr --shared && |
slaxemulator@10406 | 33 make && make install |
pankso@8 | 34 } |
pankso@8 | 35 |
pankso@12769 | 36 # Important cross compiled package so run readelf. |
pankso@12769 | 37 testsuite() |
pankso@12769 | 38 { |
pankso@12769 | 39 cd $install |
pankso@12769 | 40 readelf -h usr/lib/*.so.$VERSION |
pankso@12769 | 41 } |
pankso@12769 | 42 |
pankso@8 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@8 | 44 genpkg_rules() |
pankso@8 | 45 { |
pankso@8 | 46 mkdir -p $fs/usr/lib |
pankso@12769 | 47 cp -a $install/usr/lib/libz.so* $fs/usr/lib |
pankso@8 | 48 } |