wok view libxml2/receipt @ rev 25430

Up os-prober (1.81)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Aug 19 06:26:39 2022 +0000 (2022-08-19)
parents bc2b9d9bed6f
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libxml2"
4 VERSION="2.9.12"
5 CATEGORY="system-tools"
6 SHORT_DESC="XML C parser and toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="http://xmlsoft.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="ftp://xmlsoft.org/libxml2/$TARBALL"
14 DEPENDS="zlib"
15 BUILD_DEPENDS="autoconf automake libtool python-dev zlib-dev"
17 HOST_ARCH="i486 arm"
19 # When cross compiling Python is installed in chroot and is used
20 # by cross tools, cook dont need to install it in /usr/cross/arm
21 # Building with LZMA support is buggy and build fails
22 case "$ARCH" in
23 arm)
24 BUILD_DEPENDS=""
25 ARCH_ARGS="--without-lzma" ;;
26 esac
28 # What is the latest version available today?
29 current_version()
30 {
31 wget -O - "https://gitlab.gnome.org/GNOME/libxml2/-/tags/?sort=updated_desc" 2>/dev/null | \
32 sed '/item-title/!d;s|.*">v*||;s|<.*||;q'
33 }
35 # Rules to configure and make the package.
36 #
37 # Note: libxml2 can be build using option --with-minimum
38 # and binaries are splited into libxml2-tools
39 compile_rules()
40 {
41 autoreconf -fi &&
42 ./configure \
43 --prefix=/usr \
44 --infodir=/usr/share/info \
45 --mandir=/usr/share/man \
46 --with-html-dir=/usr/share/doc \
47 --with-threads \
48 --with-history \
49 $CONFIGURE_ARGS $ARCH_ARGS &&
50 make &&
51 make install DESTDIR=$DESTDIR
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/lib
58 cp -a $install/usr/lib/*.so* $fs/usr/lib
59 }