wok-undigest 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 (20 months ago)
parents ed1c8ded8dcd
children 70cd536a2a7c
files gobject-introspection-dev/receipt gobject-introspection/receipt zlib-dev/receipt zlib/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gobject-introspection-dev/receipt	Fri Aug 12 17:25:37 2022 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="gobject-introspection-dev"
     1.7 +VERSION="1.43.3"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Gobject-introspection devel files"
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="LGPL2 MIT"
    1.12 +WEB_SITE="https://wiki.gnome.org/Projects/GObjectIntrospection"
    1.13 +
    1.14 +WANTED="gobject-introspection"
    1.15 +DEPENDS="gobject-introspection glib-dev libffi-dev pkg-config"
    1.16 +
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +	mkdir -p \
    1.21 +		$fs/usr/lib \
    1.22 +		$fs/usr/share
    1.23 +	cp -a $install/usr/include $fs/usr
    1.24 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.25 +	cp -a $install/usr/lib/*.la $fs/usr/lib
    1.26 +	cp -a $install/usr/share/aclocal $fs/usr/share
    1.27 +	cp -a $install/usr/share/gir-1.0 $fs/usr/share
    1.28 +	cp -a $install/usr/share/gobject-introspection-* $fs/usr/share
    1.29 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/gobject-introspection/receipt	Fri Aug 12 17:25:37 2022 +0100
     2.3 @@ -0,0 +1,52 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="gobject-introspection"
     2.7 +VERSION="1.43.3"
     2.8 +CATEGORY="development"
     2.9 +SHORT_DESC="Introspection system for GObject-based libraries"
    2.10 +MAINTAINER="pankso@slitaz.org"
    2.11 +LICENSE="LGPL2 MIT"
    2.12 +WEB_SITE="https://wiki.gnome.org/Projects/GObjectIntrospection"
    2.13 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    2.14 +WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
    2.15 +#HOST_ARCH="i486 arm"
    2.16 +
    2.17 +DEPENDS="libgio dbus"
    2.18 +BUILD_DEPENDS="flex bison glib-dev python-dev libgio-dev libffi-dev \
    2.19 +cairo-dev dbus-dev"
    2.20 +
    2.21 +# Handle cross compilation
    2.22 +case "$ARCH" in
    2.23 +	arm*)
    2.24 +		export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib"
    2.25 +		export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
    2.26 +		export PKG_CONFIG_PATH="/cross/$ARCH/sysroot/usr/pkgconfig"
    2.27 +		BUILD_DEPENDS="glib-dev libgio-dev libffi-dev cairo-dev dbus-dev" ;;
    2.28 +esac
    2.29 +
    2.30 +current_version()
    2.31 +{
    2.32 +	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    2.33 +	sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    2.34 +}
    2.35 +
    2.36 +# Rules to configure and make the package.
    2.37 +compile_rules()
    2.38 +{
    2.39 +	./configure \
    2.40 +		--disable-static \
    2.41 +		$CONFIGURE_ARGS &&
    2.42 +	make && make install
    2.43 +}
    2.44 +
    2.45 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.46 +genpkg_rules()
    2.47 +{
    2.48 +	mkdir -p \
    2.49 +		$fs/usr/lib \
    2.50 +		$fs/usr/share
    2.51 +	cp -a $install/usr/bin $fs/usr
    2.52 +	cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
    2.53 +	cp -a $install/usr/lib/gobject-introspection $fs/usr/lib
    2.54 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.55 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/zlib-dev/receipt	Fri Aug 12 17:25:37 2022 +0100
     3.3 @@ -0,0 +1,22 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="zlib-dev"
     3.7 +VERSION="1.2.12"
     3.8 +CATEGORY="development"
     3.9 +SHORT_DESC="Zlib compression library devel files."
    3.10 +MAINTAINER="pankso@slitaz.org"
    3.11 +LICENSE="zlib/libpng"
    3.12 +WANTED="zlib"
    3.13 +WEB_SITE="http://zlib.net/"
    3.14 +HOST_ARCH="i486 arm x86_64"
    3.15 +
    3.16 +DEPENDS="zlib pkg-config"
    3.17 +
    3.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.19 +genpkg_rules()
    3.20 +{
    3.21 +    mkdir -p $fs/usr/lib
    3.22 +    cp -a $install/usr/lib/*.*a $fs/usr/lib
    3.23 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    3.24 +	cp -a $install/usr/include $fs/usr
    3.25 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/zlib/receipt	Fri Aug 12 17:25:37 2022 +0100
     4.3 @@ -0,0 +1,48 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="zlib"
     4.7 +VERSION="1.2.12"
     4.8 +CATEGORY="base-system"
     4.9 +SHORT_DESC="Compression library"
    4.10 +MAINTAINER="pankso@slitaz.org"
    4.11 +LICENSE="zlib/libpng"
    4.12 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    4.13 +WEB_SITE="http://zlib.net"
    4.14 +WGET_URL="$WEB_SITE/$TARBALL"
    4.15 +#WGET_URL="$SF_MIRROR/libpng/$TARBALL"
    4.16 +HOST_ARCH="i486 arm x86_64"
    4.17 +
    4.18 +DEPENDS="glibc-base"
    4.19 +BUILD_DEPENDS=""
    4.20 +
    4.21 +current_version()
    4.22 +{
    4.23 +	wget -O - $WEB_SITE 2>/dev/null | \
    4.24 +	sed '/FONT SIZE/!d;s|.*zlib ||;s|<.*||;q'
    4.25 +}
    4.26 +
    4.27 +# Rules to configure and make the package.
    4.28 +compile_rules()
    4.29 +{
    4.30 +	case "$ARCH" in
    4.31 +		i486)
    4.32 +			# work around gcc bug; see https://bugs.archlinux.org/task/20647
    4.33 +			export CFLAGS="${CFLAGS/-O2/-O3} -fno-tree-vectorize -DUNALIGNED_OK" ;;
    4.34 +	esac
    4.35 +	./configure --prefix=/usr --shared &&
    4.36 +	make &&	make install
    4.37 +}
    4.38 +
    4.39 +# Important cross compiled package so run readelf.
    4.40 +testsuite()
    4.41 +{
    4.42 +	cd $install
    4.43 +	readelf -h usr/lib/*.so.$VERSION
    4.44 +}
    4.45 +
    4.46 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.47 +genpkg_rules()
    4.48 +{
    4.49 +    mkdir -p $fs/usr/lib
    4.50 +    cp -a $install/usr/lib/libz.so* $fs/usr/lib
    4.51 +}