wok view libxml2/receipt @ rev 24717
updated liba53 (0.1 -> 4.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 15 07:27:19 2022 +0100 (2022-03-15) |
parents | 3e2a0347b2f1 |
children | 5626c14aff89 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libxml2"
4 VERSION="2.9.10"
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 -j 1 &&
51 make DESTDIR=$DESTDIR install 2>&1 | grep -v "can't stat './..html':"
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 }