# HG changeset patch # User Christophe Lincoln # Date 1336864822 -7200 # Node ID 68de2a869f282f644bd673a85e9e5e8a5ec92e87 # Parent 7759df4ad8534b808c5dc9a523faaebc1f839565 zlib: make it an arm package (noe cook/cooker handle packages by arch diff -r 7759df4ad853 -r 68de2a869f28 zlib/receipt --- a/zlib/receipt Sat May 12 22:46:57 2012 +0200 +++ b/zlib/receipt Sun May 13 01:20:22 2012 +0200 @@ -1,38 +1,41 @@ # SliTaz package receipt. PACKAGE="zlib" -VERSION="1.2.6" +VERSION="1.2.7" CATEGORY="base-system" SHORT_DESC="Compression library." MAINTAINER="pankso@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.bz2" -WEB_SITE="http://zlib.net/" +WEB_SITE="http://zlib.net" WGET_URL="$WEB_SITE/$TARBALL" +HOST_ARCH="i486 arm" DEPENDS="glibc-base" BUILD_DEPENDS="" -# Rules to compile & install the temporary toolchain by Tazwok. -cook_tmp_toolchain() -{ - cd $src - ./configure --prefix=/tools && - make && make install -} - # Rules to configure and make the package. compile_rules() { cd $src - # work around gcc bug; see https://bugs.archlinux.org/task/20647 - export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" + case "$ARCH" in + i486) + # work around gcc bug; see https://bugs.archlinux.org/task/20647 + export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" ;; + esac ./configure --prefix=/usr --shared && make && make install } +# Important cross compiled package so run readelf. +testsuite() +{ + cd $install + readelf -h usr/lib/*.so.$VERSION +} + # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib - cp -a $_pkg/usr/lib/libz.so* $fs/usr/lib + cp -a $install/usr/lib/libz.so* $fs/usr/lib }