wok-undigest diff zlib/receipt @ rev 1249

copied recipes for gobject-introspection and zlib from cooking wok
author Hans-G?nter Theisgen
date Fri Aug 12 17:25:37 2022 +0100 (21 months ago)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/zlib/receipt	Fri Aug 12 17:25:37 2022 +0100
     1.3 @@ -0,0 +1,48 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="zlib"
     1.7 +VERSION="1.2.12"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="Compression library"
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="zlib/libpng"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.13 +WEB_SITE="http://zlib.net"
    1.14 +WGET_URL="$WEB_SITE/$TARBALL"
    1.15 +#WGET_URL="$SF_MIRROR/libpng/$TARBALL"
    1.16 +HOST_ARCH="i486 arm x86_64"
    1.17 +
    1.18 +DEPENDS="glibc-base"
    1.19 +BUILD_DEPENDS=""
    1.20 +
    1.21 +current_version()
    1.22 +{
    1.23 +	wget -O - $WEB_SITE 2>/dev/null | \
    1.24 +	sed '/FONT SIZE/!d;s|.*zlib ||;s|<.*||;q'
    1.25 +}
    1.26 +
    1.27 +# Rules to configure and make the package.
    1.28 +compile_rules()
    1.29 +{
    1.30 +	case "$ARCH" in
    1.31 +		i486)
    1.32 +			# work around gcc bug; see https://bugs.archlinux.org/task/20647
    1.33 +			export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" ;;
    1.34 +	esac
    1.35 +	./configure --prefix=/usr --shared &&
    1.36 +	make &&	make install
    1.37 +}
    1.38 +
    1.39 +# Important cross compiled package so run readelf.
    1.40 +testsuite()
    1.41 +{
    1.42 +	cd $install
    1.43 +	readelf -h usr/lib/*.so.$VERSION
    1.44 +}
    1.45 +
    1.46 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.47 +genpkg_rules()
    1.48 +{
    1.49 +    mkdir -p $fs/usr/lib
    1.50 +    cp -a $install/usr/lib/libz.so* $fs/usr/lib
    1.51 +}